Oil sending unit/switch

To remove the sending unit from the oil pump, I struggled for a while, but then I locked vise grips on it and hit it with a hammer.....lol