Refactoring zookeeper-server service