Adapt legacy_formatter.hook signature to cucumber-ruby-core