[TASK] Remove unused code from RecordHistory