Use _.map for simplicity
Simplify formatHosts