def ill_notifications_filter(record, action, **kwargs):
    """Filter notifications.

    Returns if the notification should be sent for given action
    """
    action_filter_map = {
        "extension_accepted": False,
        "extension_declined": False,
        "extension_requested": True,
    }
    return action_filter_map[action]