Remove unused variable from scope