I realize now that `pathKey` doesn't seem very descriptive. It's the document root for the current server. Maybe that can help make this code more readable?