MDL-42627 behat: Moving the deprecated method to behat_deprecate and updating scenarios