Remove deprecations and warnings.