refactor action wizard