Implement Application Factory and Blueprints