Removing deprecated method