Migrate to new API legacy.