Headlight Disassembly

Is there a way to disassemble the headlights on these completely? I have the headlight error on my car, so I bought a headlight on ebay to scavenge parts from or rebuild to replace mine. The wires on the one I bought were visibly disintegrating so I though I would tear it apart and redo the wiring but after removing every screw I could access I couldn’t see anyway to remove the main headlight housing. I figured after a while I’d just get it apart by any means just to see if I could figure out how they came apart (so I could fix the broken one currently on my car), even with less than subtle means (hammer/long screwdriver) they still won’t come apart. So I’m wondering if there is a procedure to fix them or do they just need to be replaced if they wiring is damaged?