Remove duplicate resources.