Refactor TFIDFSchema.