CSHARP-1141: Move most of the not primary checking code into ExceptionMapper.