Replace use of NamespaceUtils

needs https://gerrit.wikimedia.org/r/#/c/167781/
Merge pull request #16 from wmde/namespaceutils

Replace use of NamespaceUtils