Best way to remove nipples on water pump?

find a bolt 7/16 or 3/8 what ever you can get down the pipe and use a pipe wrench, heat the nipple as described, then cool use penetrating oil, then heat the casting, the bolt will keep the pipe from smashing in and will take it out.
good luck