Replaced procedure for retrieving rebookings and cancellations in the list_rebookings function for simplicity.