Just in case it wasn't made clear, you heat the hanger red hot and then pound on the pin.
BUT! If you're going to replace the hanger anyway why not just cut through it with a cut off wheel and be done with it?
You're going to need a "new" one anyway.