Improve akka.example.wordcount more functional