Moved term_fmt from helpers to util