Remove call to deprecated method.