resourceloader: Move applyFilter() stats back to filter()