Changing Speedometer Pinion Gear?

Question, When changing out a speedometer pinion gear, do you need to drain out some the the case gear oil first?
Or can the pinion adaptor be removed without having gear leaking out at that location?