wheel stud removal/instal

I have a broken wheel stud in a 7 1/4 rear axle. Do i just hammer out the broken part of the stud, or will that damage the center diff. What is the best way to reinstall, pull it through with the nut and a spacer. Or am i just better off removing the axle.