code cleanup for workflow.clj
small tweak to stuarth's refactoring