Don't measure coverage for abstract base methods that return NotImplemented
Use _to_deprecated_string for serializing deprecated strings