That's all for warranty work. We're talking about what you do with a 5 year old used bike, which is what OP wants to buy.
send the motor to peter and send the batt to jimmy that's pretty much your only option out of warranty with a bike that old but its all about how it is looked after.