Gas Tank Sending Unit removal

Trying to remove a Sending Unit from an original Gas Tank, it's stuck in there. I took the Lock Ring off, and I'm trying not to bend the Flange. Anyone have any tricks to get it out carefully?