class SurveyUpdater {

    public static void moveLeg(Survey survey, Leg leg, Station newSource) {
        Station originating = survey.getOriginatingStation(leg);
        originating.getOnwardLegs().remove(leg);
        newSource.addOnwardLeg(leg);
        survey.setSaved(false);
    }

}