Using a 2mm hex driver, remove the two small screws that hold the pistol grip plate in place.
After removing the plate, you will see the motor and two wires attached to it. Carefully lift the wires up off of the motor terminals. Note the orientation of the motor and the wires, you will need to re-install them the same way later on.
Pull the motor out of the pistol grip.