Remove duplicated variable declarations