Change the code inside of deprecated APIs