[FEATURE] Add migration task to replace deprecated static methods

* Replace deprecated static methods that are safe to replace.