The `path.join(dir, ns, key)` pattern might should factor out into a method like `keyPath(key)` for future extensibility