I don’t know, I have a machine that will pull galvanized to about 500′ and it sits on top of the casing. But you will have a difficulty getting long lengths of pipe up through the roof…. or cutting them off to be able to not go through it.
So ask around for a pump puller machine.
Quality Water Associates