Remove unnecessary file duplicates