Farouk had DNA taken from Lenny’s corpse using some device that apparently alters the DNA of another to match the sampled DNA. This twisted Amy’s body but her mind should have still been her own, so most likely Farouk booted Amy’s psyche and shoved Lenny’s in.