refactoring CassandraTemplate