Refactor FlightDetailsParser.