def simple(child, shared, parent):
    """Return sub-set of children who are "simple" in the sense of group_children"""
    return not child.get('refs', ()) and (not shared.get(child['address']) or
        shared.get(child['address']) == [parent['address']])
