patches: add refactor workflow