Update cucumber step to use factory.