Remove deprecation warning

needs review