move code generator to command builder gem