Refactor ClusterConfig implementations into a single class.