Split handler and app into separate namespaces