Removing duplicate references in project files