Move txt_util to a separate library.