Refactor binarny by moving logic into CLI class.