Pulling the axles and pressing in new studs is the best way.



If you start hapmering on the flange, the bearings will be subject to damage.