Move proxy setting from constructor opts to environment variable.