The actual replacement need to be studied on a case by case basis by reading the deprecation warning or the release notes.