goshdogit
(goshdogit)
435
Here’s a photo of a D1 with the driver removed to illustrate what Flashy Mike is saying about the switch’s two white wires. The D4 looks about the same.

I’ve reflashed three D4s, a D1, and a D1S without damaging anything or desoldering the white wires.
I desolder and remove the LED board as Flashy Mike describes, then place the D4 with the driver facing the table. This hopefully prevents the driver from being pushed out too far and yanking on the switch’s wires.
Look through the hole and find a blank spot on the driver board to push against. I use a shortened bamboo skewer and tap it with increasingly heavier taps to push the driver loose. Once the driver starts to move, you can pull gently on the spring and wiggle it out.
Three out of five of the Emisar drivers I’ve removed popped right out. Two were more stubborn due to a tight fit and/or excess adhesive.
Be gentle while manipulating the driver to position your SOIC clip for reflashing, and be careful not to pinch the white switch wires while reinstalling the driver.
Good luck!