The motor controller (sometimes called the "ECU") is the heart of the e-bike. It takes signals from the throttle and pedal sensors and controls the flow of the energy from the battery to the motor. It is designed to be easy to remove from the e-bike.
Below is a video with instructions on how to change the motor controller:
Click the link to see the instruction manual describing how to access and change the e-bike’s controller.