To clear up any misunderstanding, I didn't mean you could pound out the bearing or the hub, just the stud. The stud are easy to pound out once the hub is out of the bearing.
The link I posted above is for a specialty tool that the brake shops(Midas and Meineke) use to remove the rotors and hubs without having to press out the bearing. Unfortunately, the tool is $250 unless you have access to one at a shop.