refactoring GtSourceGenerator