Explicity set the filter type when compressing class expressions instead of trying to quote.