Move actor generation from Global.scala to a factory