feat(etcd): refactor mode switch method