changing large herringbone gear

Hi,

I need to change my printhead gears.
Regarding large gear- how best to take out the hobbed bolt out of it? It’s kind of stuck…

put the gear over a hole where the bolt is, with the long end of the bolt sticking up in the air. Now whack it with a hammer until the bolt falls out of the gear into the hole.

Thanks, that’s what I wanted to hear