Refactor guestlist command.