Nixed a bunch of deprecated APIs.