Remove unused dependencies in server ctor