Move codegen .do file to where it will be triggered