refactor zookeeper lookup into Discovery class