Good opportunity for using `partial` here.

It's arguably just a stylistic choice, but I think removing the anonymous variable is a positive change.