Code review: Prefer literal over fn

I assume this was extracted from the function below, where it existed as
an anonymous function (so using the literal form wasn't possible).
Code review: Destructure to remove manual lookups