CFY-1232 refactor local workflow execution logic