I die a little every time I have to read this polyalgorithm. "A convenient factorization" belies a monster Kaonashi.