code: function addGroupToList(group, list) {
      if (!group) {
        return list;
      }
  
      if (group.length > 1) {
        list.push(group);
      } else {
        list = list.concat(group);
      }
  
      return list;
    }
docs: We collapse groups of one so that user frames are not in a group of one