Best to pull out box & gearbox in one go - loads easier, and if you're tight remove the A/C compressor and cable tie it aside but leaving all the hoses attached (so you don't need to regas the system), do the same for the power steering pump as well.
Unclip all the sensor plugs, etc..
motor out done.