Simplify the dependencies to the namespace_manager so that it is easier to build an unit test

Change-Id: Ib5b108e493e712a875329ba4f4dfca98f1f0b7c9