Refactor FlaskViews a little