refactor for cleaner use of figure-workflow-file