Refactor 'while {expr1}' usage into 'for {var} in {list}'