[fixes#74056356] previous filtering logic was added in trip_part_serializer which was not called in trip_part_controller.itineraries method; moved the logic to trips_helper so can be used in both trip_part_serializer and trip_part_controller