I like the simplicity of [this pattern](https://github.com/doeixd/effectively/blob/main/docs/generator-context-pattern.md). Maybe we can adopt it.