Remove duplicate degrees.