code style: move `apply_remap` _above_ `apply_filter`