Maybe `createGeneratorConfig` would be a better name?

Despite that nit: LGTM