Remove duplicate variable instantiation