See the steps I've defined here:

https://github.com/cucumber/cucumber/blob/master/features/docs/formatters/rerun_formatter.feature#L19

Can you try to use the exact same ones whenever possible when porting these over? I think we'll be able to push the writing of this steps file down the stack, perhaps into a tagged hook or maybe even make them implicitly available in each scenario, but the first thing is to bring the duplication out into the open by making them consistent.