Remove unnecessary local variable