def remove_nexus_metadata(d: dict):
    """ Returns a copy of the provided dictionary without nexus metadata (i.e. root keys starting with '_'). """
    x = dict()
    for k in d.keys():
        if not k.startswith('_'):
            x[k] = d[k]
    return x