Return an behat callback function.