I think you're referring to my trick using Fusion followed by Astral Seed on a devastation beetle to gain a total of 128 HD, and then retraining them into class levels.
Note that if you find a way to cast the Aberrate spell on both yourself and the devastation beetle, you're both aberrations at that point, and can Fusion with impunity. Otherwise, Polymorph will change your types to match, and you can have fun with the resulting racial mish-mash. Do you want to be a gestalt of a hydra and a chronotyryn? Sure! Black pudding and dvati? Why not? Prismatic dragon and a hagunemnon? Go nuts!