From Kenom's DIY DVD Burner tutorial:
Grab the Aixiz module. Unscrew the lower half of the module and grab a pipe cutter. Using the pipe cutter we are going to cut off all but what we need to bring the focus ring to the end of our flashlight head. In my case it was 9mm of the barrel remaining, the rest was cut off. So my entire module top and bottom is 16mm. Using a dremel tool I notch the bottom of the now tubed bottom so that I have a place for my two leads to come out of. I then take a cut the leads off of a normal led about ¾ inch long for soldering onto the pins of our Laser diode.
I solder the leads of the led onto the pins from the laser diode and replace the hollow cap back onto the bottom of the module. I with a pair of pliers bend the diode’s new pins so that they are exiting sideways out of the grooves that we cut into the bottom of the barrel on the module. Making sure that they do not come into contact with the side of the module we then solder the diode’s new pins onto the negative and positive places we cleaned up. Make sure also that the positive connection on the board itself does not come into contact with the module either and epoxy it in place with some thermal epoxy. Power the diode up again one more time to make sure we have electrical connection.