Move some of persona-kit.core into middleware and view namespaces as appropriate.