'Pull the definition fields out of descriptor and save to the db as a new definition
w/o a predecessor and return the new id.
:param user_id: request.user object'

def create_definition_from_data(self, course_key, new_def_data, category, user_id):

    new_def_data = self._serialize_fields(category, new_def_data)
    new_id = ObjectId()
    document = {'_id': new_id, 'block_type': category, 'fields': new_def_data, 'edit_info': {'edited_by': user_id, 'edited_on': datetime.datetime.now(UTC), 'previous_version': None, 'original_version': new_id}, 'schema_version': self.SCHEMA_VERSION}
    self.update_definition(course_key, document)
    definition_locator = DefinitionLocator(category, new_id)
    return definition_locator
