Move history-related transformations to `filters.py` using a mixin class.
Move history-related transformations to
filters.pyusing a mixin class.