public void removeBogusLegs() {
        Iterator<Leg> it = legs.iterator();
        while (it.hasNext()) {
            Leg leg = it.next();
            if (leg.isBogusNonTransitLeg()) {
                it.remove();
            }
        }
    }