Change the deprecated method for a new one.