Remove deprecation comparison warnings in _functions