Reduce duplicated code in Scala Akka System