jormungandr: refacto in remove_non_optimal_journeys