Whole gearbox swap = easier than repair.
I find it easier to pull the gearbox out from under rather than pull the engine from above.
The drive shafts can be left to slide off as you take the box out, no need to pull them off first. Once the gearbox is clear of the bellhousing of the engine, push it left, remove shaft then push it right and remove the other shaft.
Lining it back up if stub axle is a little tricker but possible. I’ve done it several time now and it works a treat!