[misc] Remove call to deprecated method (fix functional tests).