CFY-799 refactor workflow task creation