Removes distinct clause