[misc] Updated a few deprecated method calls