How to remove spring from hood hinge ?

I very carefully pried mine off with a flat head screw driver. I then straightend with a ball peen hammer where needed. I used an old socket to reinstall.