Remove duplicates from selected categories when copying to clipboard