how the hell do you remove Master cylinder studs!?!?

Well, Ive been doing most of the work on this car in the dark and couldnt see the welds, and as you can tell by the title, I was pretty pissed a few hours ago, lol. Anyway, new 'studs' are welded in, the whole bracket has been painted and installed, master cylinder installed, and the brakes bled.....first time Ive had brakes on this car since Ive owned it (3-years).....Im so fed up with this car inparticular, its been one thing after another.....title issues, wrong oil pan, siezed rings on cylinders 5-6, lots of broken bolts for no reason, etc.