Use the allowed namespace utility functions.

Dependent on https://github.com/Islandora/islandora/pull/349