The following pics show a method of disassembling the drive shaft from the pinion gear on a Model B Ford. The drive shaft on a Model B is tubular, not a small solid shaft like a Model A, and the gear and shaft assembly cannot be passed through the pinion gear race.
Thus, when the pinion race is pressed into the banjo, you must first remove the shaft from the gear. Of course, the shaft is a taper fit to the gear and does not come apart easily!
Here is one way of separating the shaft from the gear while it is still in the banjo.
Typical assembly. The pinion bearing nuts could be loosened, but not removed.
Drive shaft taper nut securing the pinion gear to the shaft.
A Diamond chain wrench does a good job of gripping round and irregular shaped objects. Remove the shaft nut.
Use a thread protector on the shaft, a gear puller, and a race support to push the driveshaft out of the pinion gear taper.
The early 1928 Model A drive shaft (not shown) has a threaded section for securing the differential pinion gear bearing lock nuts directly to the shaft.
The threads and nuts were moved from the drive shaft to the pinion gear itself later in 1928, and the lock nuts were enlarged.
In 1932 the shaft itself was enlarged and changed to the tubular style.