Separated filters out to one that modify the main query directly and those that run after the query.