Remove unused code from unique indexes.