Making hosts a hash to proxies would be slightly neater.