Water intake nipple corroded

You can fill the ID of the nipple with a solid piece of steel so it doesn't collapse and grab it with a pipe wrench. Doesn't always work.
If it breaks off you can still split it with a hacksaw and drive a keen chisel under it to curl it up.