Refactor cucumber step.