TP4056 module keeps needing activation

Thing is I disposed of all the electronics that came with it (the electric shaver, that is what the project is). How should I approach this issue? What I need is a charging and protection circuit; and a way to power the motor from the battery, correct? Cheers

Edit:
I checked on AliExpress and they sell the motherboards for it. A bit pricey though, and delivery delay; I would like to come up with a custom solution. The shaver I'm trying to fix is the Wahl 8591.