zookeeper role refactoring