This whole block should go in the extension manager itself, so that when other features start CH (cmdline, other tools, etc) they will all benefit from this too. Any CH specific data that you need should be passed in at that time.