Consider separating the proxy related config into its own class, that way you have complete separation