Remove deprecation warning.