Refactor GeneratorExampleGroup module functionality