def METHOD_NAME(self, field_name, model_class):
    if field_name == self.html_url_field_name:
        return (HtmlViewField, {})
    if field_name == self.url_field_name:
        extra_kwargs = getattr(self.Meta, 'extra_kwargs', {})
        kwargs = {'context': self.context}
        kwargs.update(extra_kwargs[self.url_field_name])
        return (NestedHyperlinkedIdentityField, kwargs)
    return super().METHOD_NAME(field_name, model_class)