Getting rid of unnecessary closures in DocumentStorage.entryResolver.