rm deprecation warning