To avoid the closure "closing over" anything. It's a pattern I saw in `HashSet::difference` and stole it for the various other function.