DRY'ed AlertsController