Improved the `registerNamespace` method signature