Eliminate a deprecation warning