Removing unnecessary variables declaration -refs #6092