Moving code generator to a separate folder