Broken light switch

The plastic hinged part in the light switch came off along with the tiny spring. I have tried to remove the switch located on the frame but haven’t been able to completely pop it out. How can I get this switch out so I can reassemble the part.