Get a socket slightly smaller, imperial are good for this some times, failing that a good old-fashion torques socket. Hammer it on(all the way) and gently gently take it out. This is my usual go to method for removal, saves the threads as well Loud pipes save lives