Whats the best way to get this fitting off

Careful heating and a pipe wrench, or you may try cutting it from the inside, but you have to be really careful