MiddlewarePatterns: Fix directory structure. Enable package restore.