Refactor amon into separate namespaces.