American Airlines is ending code share agreements with Etihad Airways and Qatar Airways.