Refactor FlightStatsClient.