Remove duplicated local declarations.