refactor: move namespace-views mapping to utils.