I guess this isn't the correct way but its the way I've always done it:
Loosen the driveshaft nut before releasing the hub (generally easier whilst still in the car rather than on the bench unless you have a impact driver) , then as above to get the hub off.
But then release the inner CV joint boot and pull the drive shaft out of the pot, leaving the pot in position in the gearbox
The inside part of the CV joint will go through the hole in the subframe so making it simple to get the shaft out to work on
Doing as described by Moke Spider might be a bit fiddly to release the shaft from the inner CV if its tight - never tried it so don't know for sure
My "method" can be a bit messy as the CV moly grease is sticky and black/grey but if you're careful it can be done without spreading it all over everything
If the bearing is stuck on the outer CV you may need a new CV as there maybe a groove (from a spinning inner race that is stopping it coming off) or its welded on (from spinning faster!) and removing it may jigger the surface (probably, but you might be lucky....?)
You can clean the inner joint before refitting and add new grease then carefully put it back the way it came out (so as not to smear grease everywhere), refix the boot (from under the car) and Robert's your fathers brother, job done.