MDL-63977 Behat: Organise app functions in window.behat object