class AsPath implements Serializable, Comparable<AsPath> {

  public AsPath removeConfederations() {
    return AsPath.of(
        _asSets.stream()
            .filter(asSet -> !asSet.isConfederationAsSet())
            .collect(ImmutableList.toImmutableList()));
  }

  private  AsPath(ImmutableList<AsSet> asSets);

}