Refactor TR_FILTER using a GPtrArray of filter lines