Split closures off into loops.