Move the transform methods to transform module; raise error when options not valid