DRY up the transformation generators.
Do optimization on transform generators.
Add a jsdoc for fromTransform.