Implement to read the server address for a specified key from Cassandra
and some refactorings.