Split the function into two smaller functions. NFC.
Split the function into two smaller functions. NFC.

Swift SVN r20722

manavgabhawala/swift,gottesmm/swift,gottesmm/swift,Ivacker/swift,kusl/swift,KrishMunot/swift,manavgabhawala/swift,modocache/swift,sdulal/swift,hooman/swift,dduan/swift,russbishop/swift,LeoShimonaka/swift,kperryua/swift,felix91gr/swift,tinysun212/swift-windows,natecook1000/swift,airspeedswift/swift,parkera/swift,apple/swift,mightydeveloper/swift,swiftix/swift,hooman/swift,deyton/swift,arvedviehweger/swift,atrick/swift,xedin/swift,Jnosh/swift,swiftix/swift.old,CodaFi/swift,apple/swift,nathawes/swift,lorentey/swift,CodaFi/swift,roambotics/swift,felix91gr/swift,kentya6/swift,ben-ng/swift,johnno1962d/swift,uasys/swift,djwbrown/swift,russbishop/swift,mightydeveloper/swift,kusl/swift,russbishop/swift,johnno1962d/swift,sschiau/swift,uasys/swift,calebd/swift,JGiola/swift,djwbrown/swift,therealbnut/swift,MukeshKumarS/Swift,practicalswift/swift,gmilos/swift,natecook1000/swift,arvedviehweger/swift,kperryua/swift,LeoShimonaka/swift,djwbrown/swift,djwbrown/swift,roambotics/swift,nathawes/swift,gmilos/swift,return/swift,austinzheng/swift,KrishMunot/swift,uasys/swift,hughbe/swift,practicalswift/swift,benlangmuir/swift,harlanhaskins/swift,JaSpa/swift,emilstahl/swift,huonw/swift,benlangmuir/swift,amraboelela/swift,khizkhiz/swift,LeoShimonaka/swift,allevato/swift,danielmartin/swift,stephentyrone/swift,amraboelela/swift,frootloops/swift,alblue/swift,shahmishal/swift,SwiftAndroid/swift,Jnosh/swift,jopamer/swift,JGiola/swift,tjw/swift,Ivacker/swift,rudkx/swift,milseman/swift,MukeshKumarS/Swift,hooman/swift,gottesmm/swift,xwu/swift,gmilos/swift,OscarSwanros/swift,adrfer/swift,practicalswift/swift,SwiftAndroid/swift,shahmishal/swift,jtbandes/swift,dreamsxin/swift,rudkx/swift,deyton/swift,devincoughlin/swift,jckarter/swift,mightydeveloper/swift,harlanhaskins/swift,stephentyrone/swift,karwa/swift,benlangmuir/swift,jckarter/swift,swiftix/swift.old,parkera/swift,tjw/swift,jmgc/swift,dduan/swift,IngmarStein/swift,glessard/swift,jmgc/swift,kperryua/swift,zisko/swift,kstaring/swift,tinysun212/swift-windows,johnno1962d/swift,xwu/swift,glessard/swift,khizkhiz/swift,jopamer/swift,kentya6/swift,return/swift,tardieu/swift,tinysun212/swift-windows,gottesmm/swift,natecook1000/swift,dduan/swift,xedin/swift,CodaFi/swift,jtbandes/swift,ahoppen/swift,slavapestov/swift,cbrentharris/swift,austinzheng/swift,tkremenek/swift,apple/swift,arvedviehweger/swift,shahmishal/swift,atrick/swift,parkera/swift,hooman/swift,gottesmm/swift,emilstahl/swift,bitjammer/swift,alblue/swift,atrick/swift,nathawes/swift,kstaring/swift,tinysun212/swift-windows,allevato/swift,SwiftAndroid/swift,gribozavr/swift,SwiftAndroid/swift,natecook1000/swift,lorentey/swift,arvedviehweger/swift,apple/swift,jmgc/swift,IngmarStein/swift,LeoShimonaka/swift,allevato/swift,milseman/swift,codestergit/swift,gribozavr/swift,practicalswift/swift,kperryua/swift,parkera/swift,gribozavr/swift,felix91gr/swift,bitjammer/swift,danielmartin/swift,huonw/swift,allevato/swift,ben-ng/swift,swiftix/swift,Jnosh/swift,OscarSwanros/swift,aschwaighofer/swift,gregomni/swift,cbrentharris/swift,huonw/swift,cbrentharris/swift,russbishop/swift,bitjammer/swift,rudkx/swift,jopamer/swift,shajrawi/swift,LeoShimonaka/swift,jtbandes/swift,kentya6/swift,brentdax/swift,jmgc/swift,jopamer/swift,sschiau/swift,aschwaighofer/swift,tkremenek/swift,slavapestov/swift,nathawes/swift,OscarSwanros/swift,xedin/swift,danielmartin/swift,deyton/swift,amraboelela/swift,shahmishal/swift,return/swift,jtbandes/swift,calebd/swift,felix91gr/swift,Jnosh/swift,austinzheng/swift,modocache/swift,modocache/swift,dduan/swift,adrfer/swift,kusl/swift,gregomni/swift,devincoughlin/swift,gregomni/swift,xwu/swift,shahmishal/swift,sdulal/swift,devincoughlin/swift,deyton/swift,gregomni/swift,huonw/swift,swiftix/swift.old,ben-ng/swift,airspeedswift/swift,gmilos/swift,apple/swift,manavgabhawala/swift,kusl/swift,stephentyrone/swift,ahoppen/swift,xedin/swift,swiftix/swift.old,OscarSwanros/swift,milseman/swift,swiftix/swift.old,atrick/swift,uasys/swift,JGiola/swift,therealbnut/swift,Jnosh/swift,apple/swift,stephentyrone/swift,codestergit/swift,IngmarStein/swift,Ivacker/swift,stephentyrone/swift,karwa/swift,arvedviehweger/swift,KrishMunot/swift,OscarSwanros/swift,IngmarStein/swift,johnno1962d/swift,tkremenek/swift,shajrawi/swift,glessard/swift,jckarter/swift,LeoShimonaka/swift,khizkhiz/swift,devincoughlin/swift,glessard/swift,amraboelela/swift,emilstahl/swift,mightydeveloper/swift,uasys/swift,gribozavr/swift,JaSpa/swift,xedin/swift,MukeshKumarS/Swift,hughbe/swift,alblue/swift,brentdax/swift,return/swift,adrfer/swift,ken0nek/swift,cbrentharris/swift,CodaFi/swift,brentdax/swift,brentdax/swift,jmgc/swift,tardieu/swift,frootloops/swift,roambotics/swift,dduan/swift,swiftix/swift.old,tkremenek/swift,shajrawi/swift,ben-ng/swift,felix91gr/swift,karwa/swift,zisko/swift,Jnosh/swift,khizkhiz/swift,kusl/swift,tjw/swift,emilstahl/swift,lorentey/swift,OscarSwanros/swift,benlangmuir/swift,swiftix/swift,nathawes/swift,JaSpa/swift,atrick/swift,ben-ng/swift,johnno1962d/swift,parkera/swift,airspeedswift/swift,jckarter/swift,bitjammer/swift,adrfer/swift,tjw/swift,xwu/swift,uasys/swift,gottesmm/swift,allevato/swift,slavapestov/swift,xwu/swift,stephentyrone/swift,russbishop/swift,Ivacker/swift,stephentyrone/swift,ben-ng/swift,ken0nek/swift,hooman/swift,manavgabhawala/swift,therealbnut/swift,amraboelela/swift,emilstahl/swift,kstaring/swift,jopamer/swift,kusl/swift,practicalswift/swift,jtbandes/swift,hughbe/swift,khizkhiz/swift,alblue/swift,khizkhiz/swift,kentya6/swift,airspeedswift/swift,roambotics/swift,kusl/swift,tardieu/swift,natecook1000/swift,modocache/swift,tkremenek/swift,uasys/swift,lorentey/swift,ken0nek/swift,adrfer/swift,slavapestov/swift,manavgabhawala/swift,jtbandes/swift,MukeshKumarS/Swift,arvedviehweger/swift,nathawes/swift,kstaring/swift,gribozavr/swift,gottesmm/swift,djwbrown/swift,karwa/swift,codestergit/swift,jmgc/swift,modocache/swift,austinzheng/swift,johnno1962d/swift,swiftix/swift,slavapestov/swift,IngmarStein/swift,kentya6/swift,milseman/swift,harlanhaskins/swift,zisko/swift,swiftix/swift,huonw/swift,devincoughlin/swift,CodaFi/swift,hughbe/swift,gregomni/swift,frootloops/swift,sschiau/swift,modocache/swift,shahmishal/swift,benlangmuir/swift,calebd/swift,roambotics/swift,natecook1000/swift,shahmishal/swift,lorentey/swift,JaSpa/swift,mightydeveloper/swift,milseman/swift,sdulal/swift,JGiola/swift,practicalswift/swift,ahoppen/swift,practicalswift/swift,austinzheng/swift,CodaFi/swift,LeoShimonaka/swift,return/swift,kperryua/swift,manavgabhawala/swift,kstaring/swift,amraboelela/swift,KrishMunot/swift,cbrentharris/swift,huonw/swift,brentdax/swift,kentya6/swift,swiftix/swift,tardieu/swift,sschiau/swift,austinzheng/swift,JaSpa/swift,shajrawi/swift,djwbrown/swift,rudkx/swift,shajrawi/swift,CodaFi/swift,ahoppen/swift,aschwaighofer/swift,LeoShimonaka/swift,jckarter/swift,ken0nek/swift,sdulal/swift,swiftix/swift.old,alblue/swift,parkera/swift,bitjammer/swift,danielmartin/swift,huonw/swift,kstaring/swift,kusl/swift,tardieu/swift,devincoughlin/swift,atrick/swift,tardieu/swift,devincoughlin/swift,aschwaighofer/swift,alblue/swift,karwa/swift,milseman/swift,ahoppen/swift,gregomni/swift,Ivacker/swift,aschwaighofer/swift,russbishop/swift,deyton/swift,xedin/swift,zisko/swift,tkremenek/swift,Jnosh/swift,OscarSwanros/swift,brentdax/swift,zisko/swift,tardieu/swift,sschiau/swift,alblue/swift,IngmarStein/swift,Ivacker/swift,deyton/swift,cbrentharris/swift,xedin/swift,jckarter/swift,arvedviehweger/swift,allevato/swift,KrishMunot/swift,gmilos/swift,mightydeveloper/swift,tjw/swift,SwiftAndroid/swift,therealbnut/swift,aschwaighofer/swift,devincoughlin/swift,SwiftAndroid/swift,jckarter/swift,harlanhaskins/swift,slavapestov/swift,benlangmuir/swift,harlanhaskins/swift,practicalswift/swift,MukeshKumarS/Swift,gribozavr/swift,felix91gr/swift,frootloops/swift,harlanhaskins/swift,calebd/swift,dreamsxin/swift,karwa/swift,aschwaighofer/swift,KrishMunot/swift,sdulal/swift,calebd/swift,MukeshKumarS/Swift,therealbnut/swift,hooman/swift,zisko/swift,glessard/swift,dduan/swift,return/swift,jtbandes/swift,kentya6/swift,glessard/swift,shajrawi/swift,IngmarStein/swift,ken0nek/swift,deyton/swift,kperryua/swift,kperryua/swift,therealbnut/swift,natecook1000/swift,johnno1962d/swift,hooman/swift,brentdax/swift,emilstahl/swift,rudkx/swift,khizkhiz/swift,frootloops/swift,rudkx/swift,JaSpa/swift,zisko/swift,danielmartin/swift,shahmishal/swift,SwiftAndroid/swift,slavapestov/swift,gribozavr/swift,sdulal/swift,frootloops/swift,amraboelela/swift,sdulal/swift,emilstahl/swift,shajrawi/swift,xedin/swift,cbrentharris/swift,Ivacker/swift,sschiau/swift,gmilos/swift,danielmartin/swift,milseman/swift,djwbrown/swift,cbrentharris/swift,harlanhaskins/swift,adrfer/swift,kentya6/swift,KrishMunot/swift,emilstahl/swift,lorentey/swift,jopamer/swift,Ivacker/swift,codestergit/swift,nathawes/swift,codestergit/swift,ken0nek/swift,airspeedswift/swift,roambotics/swift,austinzheng/swift,mightydeveloper/swift,karwa/swift,gmilos/swift,tkremenek/swift,hughbe/swift,hughbe/swift,jopamer/swift,JaSpa/swift,kstaring/swift,airspeedswift/swift,xwu/swift,swiftix/swift,parkera/swift,sdulal/swift,karwa/swift,bitjammer/swift,russbishop/swift,bitjammer/swift,JGiola/swift,codestergit/swift,parkera/swift,shajrawi/swift,airspeedswift/swift,jmgc/swift,codestergit/swift,lorentey/swift,tinysun212/swift-windows,swiftix/swift.old,tjw/swift,therealbnut/swift,ken0nek/swift,lorentey/swift,felix91gr/swift,calebd/swift,danielmartin/swift,manavgabhawala/swift,mightydeveloper/swift,hughbe/swift,sschiau/swift,xwu/swift,JGiola/swift,calebd/swift,gribozavr/swift,modocache/swift,MukeshKumarS/Swift,ahoppen/swift,adrfer/swift,frootloops/swift,allevato/swift,dduan/swift,tinysun212/swift-windows,tjw/swift,tinysun212/swift-windows,sschiau/swift,ben-ng/swift,return/swift