A leather glove and a strap wrench.
Wrap the glove around the gear, then the strap wrench and hit it with an impact.
Don’t lose the dog locking pin thing.
Also don’t hammer the gear on the spindle while reinstalling like some YouTuber show. Just torque it down to spec like the FSM states