Reduce recursiveness in ActorLayouter to address StackOverflowExceptions