code: function getActiveItinerary (otpState) {
    const search = getActiveSearch(otpState)
    const itineraries = getActiveItineraries(otpState)
    if (!itineraries) return null
    return itineraries.length > search.activeItinerary && search.activeItinerary >= 0
      ? itineraries[search.activeItinerary]
      : null
  }
docs: Get the active itinerary/profile for the active search object
  @param {Object} otpState the OTP state object
  @returns {Object} an itinerary object from the OTP plan response, or null if
  there is no active search or itinerary