Deprecate global server usage, use injection in stead