refact: refact some units functions to Units_fmt object