Ok, I did a really simple commit in #2977 to use lookupFactory.

I did not change making ``resolve`` private and moving its jsdoc to ``lookupFactory``. It sounds like a good idea and I can do it in another PR.