chore(kabam-cli): refactor the kabam cli

extract some functions so we can read the source more easier