refactor(source file transforms): extract source file compile code to module