I'm facing a problem trying to replace the struts of the tailgate on my Citroen C5. I removed the trim, removed the left side strut from the ball stud by pulling the tab and then unscrewed the strut from the ball stud connector
Here are a couple of pictures:



I could use some suggestions on how to remove this:

I think I could use a pry bar and some leverage to remove it, but I don't want to damage anything, so I figure I ask here what is the proper way to remove it.
Also, the old strut does not seem to fit anymore, I figure it's because I need to remove the connector above and then use the boot as leverage against the ball stud to lock into place.