HostsList configure method was too big, sliced in smaller functions, with no side effects, they should be easier to tests.