Igniter replacement

I am trying to replace an igniter on my cooktop. I have the new part (PS337685) and I think that the new one just plugs in. I need to get the old one out but the top half is broken off. How do I get the old one out?