Remove duplicate variable declarations