The above techniques usually work but I was not able safely remove the studs by hammering. If you have a study C (or D) clamp you might be able to rig a device like this. This can also be used to safely install the new studs.