def _parse_action_removals(actions):
    ' Separates the combined list of keys to remove into webhooks and emails. '
    flattened = list({x for sublist in actions for x in sublist})
    emails = []
    webhooks = []
    for item in flattened:
        if (item.startswith('http://') or item.startswith('https://')):
            webhooks.append(item)
        else:
            emails.append(item)
    return (emails, webhooks)
Separates the combined list of keys to remove into webhooks and emails.
def _parse_action_removals(actions):
    '  '
    flattened = list({x for sublist in actions for x in sublist})
    emails = []
    webhooks = []
    for item in flattened:
        if (item.startswith('http://') or item.startswith('https://')):
            webhooks.append(item)
        else:
            emails.append(item)
    return (emails, webhooks)