Remove duplicate declaration of variable