Perhaps I've got the wrong end of the stick.
However, if it's the vertical pipe and elbow that you need to replace, why not start by cutting off the vertical pipe above the elbow and then carefully cut away the elbow, piece by piece, until you are left with the horizontal pipe, hopefully a bit...