If you want to remove it , cut the
If you want to remove it I would cut the pvc at the face of the cast iron hub , stuff a rag or something in the pipe , then make cuts on the plastic inside the hub with a sawzall and cut thru the plastic and lead a few times and beat it out with a hammer and...
Thats a pvc soil adapter with a lead and oakum joint. I actually did this today at work coincidentally. Lead joints here still arent that uncommon especially when you work with old men like I do who like to relive their plumbing glory days sometimes. I couldn't save the pipe because it was 1/4...