Remove unneeded deprecation warnings.