Support namespaces for repository

`namespaceRequired` is a better name.