First try to push the spring back so you can bend the two white "legs".
Bend the two white "legs" inward and push them both inside the black housing.
This would make the whole white part to slide in and come out the other end along with the red lens.