Refactor the WSGI app out