Factor get_filter() out of pcrs_filter_response()