It's lead that you are removing.
You can remove it by a combination of drilling, cutting and prying.
Then you pick up a rubber insert for the hub, and insert new pipe.
Either cast or plastic.
The brand of insert is whatever one fits your hub and pipe. They don't cost much, so sometimes I carry a few brands with me.