Refactor log/step.go