Refactor get_servers_for_role method