Refactor Akka configuration