@staticmethod
def _delete_redundant_policy(infra, policy_type):
    """
        Removes redundant policies
        """
    policies = []
    for idx, child in enumerate(infra['infraInfra']['children']):
        if policy_type in child:
            policy_name = child[policy_type]['attributes']['name']
            if policy_name in policies:
                del infra['infraInfra']['children'][idx]
            else:
                policies.append(policy_name)
    return infra
