cli/cli: refactors

splitting out methods not directly dependant on thor into cli/utils