Complete refactor of config framework for CPC plot