Cleanup the project file to avoid duplication.