Parse filters in a more sane way