Add WIP for migrating v3 source code to v4.

Need to make sure to reverse the value when renaming the attribute.