Refactor namespace and version setup.
Add a test to verify namespace/version-setup.
Require namespace/version class where needed.