Refactor of registration methods to add namespace as a config option.