Refactor writing of step values via the generic methods.