refactoring for scalatra