MDL-43236 behat: Backporting new method to ease backporting future scenarios