node refact