def rule(event):
    if event.deep_get("properties", "message", default="") in [
        "Remove owner from service principal",
        "Remove owner from application",
    ]:
        return True
    return False
