Remove unnecessary and deprecated method call