Refactor current host comparison to use 'in group_names'