Script to migrate old style vars to new style?

Hi all, I might be taking a big bunch of playbooks that use old style vars and changing them to use new style vars. Is there a script or other automation that can make that easier? Any other advice?

Thanks!
-Dylan