etcdserver: move grep member logic into publish func