Style: this line would look better if you pulled the `kwargs.pop('override_default_mediatype', None) or self.default_mediatype` bit out into a variable.