Quoted from terryb:Cut the transistor off the board and then desolder the pins. Not the cool way of doing it, but it is the safer way. Add a little flux before desoldering.
Or~~~~cut the transistor legs and leave them. Solder new one to the old legs. Sure it ends up sticking up higher than the others but it is much easier than desoldering the old legs out. I did this twice on my Baywatch 4 years ago and still fine