Hack a way to avoid creating too many closures in generated code.