OK, actually it looks like even though this variable is called `stats`, the consumer of the promise expects it to resolve with an entry, which is good. But the variable should clearly be renamed. And I still like the idea of augmenting the `resolve` callback.