Rewrite variables to named variables.