Extract rendering of name attribute in serializers to keep code DRY