Refactor create-guests function to use destructuring.