Migrate from deprecated APIs that have been removed.