Is it possible a generator have no `namespace` without forcing it with `delete`? If that's the case, prefer testing this normal generator behavior. If its not the case, then checks to fallback to `generatorName` ain't necessary and you can remove a couple lines and conditionals in your implementation.