def exclude(hub, name, state, sls_ref):
    """
    Resolve any exclude statements
    """
    if 'exclude' in state:
        exc = state.pop('exclude')
        if not isinstance(exc, list):
            hub.idem.RUNS[name]['errors'].append(
                f'Exclude Declaration in SLS {sls_ref} is not formed as a list'
                )
        state.setdefault('__exclude__', []).extend(exc)
