Upgrade a deprecated method to new(er) one