Remove distinct clause