refact former