Implement cfg syntax changes

We'll need a snapshot before we can convert the codebase over and turn on the deprecation warnings.

cc #17490