Make CLI utilize ChainrFactory