As rmgen2 depends on rmgen it has to be converted to modules before that. rmgen2 contains some globals which don't have to be exposed. Refs: #8081