Refactor FlightDetailsParser and test