Correctly processs deprecation warning