Not sure if I'm happy with this, I think it'd be nicer to put the generator expression inside a `set()` and define it at the top level.