(My) Cover is screwed onto the Light from behind, over / around the lense. The whole light needs to come out of the car, then remove the cover.
Paint, Fit cover, refit the whole light into car with plenty of thorough sealing around between the light and the car.