Implement AA byPair.