Reduce scope of delete_tokenstream.