cleanup / refactoring of transform options, config, and transform logic