document `apply_filter` and `apply_remap`
remove a function that is never used