MDL-62834 behat: Move include to function