It looks like the calls to `initMiddleware()` and `initServer()` are duplicated from above.