Maybe neater to have a separate 'delete_sent_alert_key' method? Some duplication, but more descriptive method naming.