Refactor bulk invite loop into two methods