Revert "In Addition to #206, generate the locals before change to it."

This reverts commit 37ea672f10f5c73ccf23d23b7cea28bf26663854.