Make ccHost client code more modular