akka code design simplification