Remove code duplication in isModuleElement.
Remove code duplication in isModuleElement.

ionux/TypeScript,ziacik/TypeScript,pcan/TypeScript,alexeagle/TypeScript,jdavidberger/TypeScript,AbubakerB/TypeScript,shovon/TypeScript,enginekit/TypeScript,nycdotnet/TypeScript,SmallAiTT/TypeScript,kpreisser/TypeScript,enginekit/TypeScript,evgrud/TypeScript,RReverser/TypeScript,msynk/TypeScript,DLehenbauer/TypeScript,fabioparra/TypeScript,ionux/TypeScript,jbondc/TypeScript,jeremyepling/TypeScript,Microsoft/TypeScript,moander/TypeScript,jwbay/TypeScript,kumikumi/TypeScript,hoanhtien/TypeScript,mcanthony/TypeScript,synaptek/TypeScript,evgrud/TypeScript,jdavidberger/TypeScript,kitsonk/TypeScript,abbasmhd/TypeScript,DanielRosenwasser/TypeScript,blakeembrey/TypeScript,msynk/TypeScript,OlegDokuka/TypeScript,TukekeSoft/TypeScript,jbondc/TypeScript,mihailik/TypeScript,shovon/TypeScript,minestarks/TypeScript,billti/TypeScript,suto/TypeScript,hitesh97/TypeScript,germ13/TypeScript,yazeng/TypeScript,zmaruo/TypeScript,chuckjaz/TypeScript,abbasmhd/TypeScript,impinball/TypeScript,mauricionr/TypeScript,jamesrmccallum/TypeScript,germ13/TypeScript,ropik/TypeScript,alexeagle/TypeScript,zhengbli/TypeScript,SmallAiTT/TypeScript,moander/TypeScript,webhost/TypeScript,rodrigues-daniel/TypeScript,jteplitz602/TypeScript,sassson/TypeScript,fabioparra/TypeScript,Viromo/TypeScript,DLehenbauer/TypeScript,mmoskal/TypeScript,Mqgh2013/TypeScript,keir-rex/TypeScript,mmoskal/TypeScript,shanexu/TypeScript,kitsonk/TypeScript,matthewjh/TypeScript,rodrigues-daniel/TypeScript,shiftkey/TypeScript,ZLJASON/TypeScript,alexeagle/TypeScript,kingland/TypeScript,AbubakerB/TypeScript,chuckjaz/TypeScript,ropik/TypeScript,ropik/TypeScript,RyanCavanaugh/TypeScript,hoanhtien/TypeScript,Viromo/TypeScript,mihailik/TypeScript,kitsonk/TypeScript,bpowers/TypeScript,jwbay/TypeScript,nojvek/TypeScript,thr0w/Thr0wScript,weswigham/TypeScript,Mqgh2013/TypeScript,mmoskal/TypeScript,Raynos/TypeScript,nycdotnet/TypeScript,rodrigues-daniel/TypeScript,rgbkrk/TypeScript,JohnZ622/TypeScript,erikmcc/TypeScript,hoanhtien/TypeScript,DanielRosenwasser/TypeScript,progre/TypeScript,Eyas/TypeScript,enginekit/TypeScript,jeremyepling/TypeScript,vilic/TypeScript,SaschaNaz/TypeScript,yortus/TypeScript,ziacik/TypeScript,vilic/TypeScript,ionux/TypeScript,mszczepaniak/TypeScript,mihailik/TypeScript,JohnZ622/TypeScript,SimoneGianni/TypeScript,ionux/TypeScript,JohnZ622/TypeScript,Eyas/TypeScript,shanexu/TypeScript,synaptek/TypeScript,plantain-00/TypeScript,HereSinceres/TypeScript,kumikumi/TypeScript,plantain-00/TypeScript,Eyas/TypeScript,AbubakerB/TypeScript,mszczepaniak/TypeScript,MartyIX/TypeScript,tempbottle/TypeScript,blakeembrey/TypeScript,jwbay/TypeScript,germ13/TypeScript,weswigham/TypeScript,DLehenbauer/TypeScript,MartyIX/TypeScript,donaldpipowitch/TypeScript,impinball/TypeScript,chocolatechipui/TypeScript,Eyas/TypeScript,sassson/TypeScript,erikmcc/TypeScript,yortus/TypeScript,kimamula/TypeScript,MartyIX/TypeScript,RyanCavanaugh/TypeScript,mcanthony/TypeScript,bpowers/TypeScript,plantain-00/TypeScript,SmallAiTT/TypeScript,kimamula/TypeScript,zhengbli/TypeScript,JohnZ622/TypeScript,MartyIX/TypeScript,mcanthony/TypeScript,Raynos/TypeScript,ropik/TypeScript,ZLJASON/TypeScript,rgbkrk/TypeScript,rgbkrk/TypeScript,blakeembrey/TypeScript,OlegDokuka/TypeScript,samuelhorwitz/typescript,webhost/TypeScript,nagyistoce/TypeScript,RReverser/TypeScript,billti/TypeScript,matthewjh/TypeScript,fearthecowboy/TypeScript,OlegDokuka/TypeScript,RReverser/TypeScript,thr0w/Thr0wScript,nojvek/TypeScript,ziacik/TypeScript,AbubakerB/TypeScript,nycdotnet/TypeScript,fabioparra/TypeScript,chuckjaz/TypeScript,samuelhorwitz/typescript,yortus/TypeScript,fearthecowboy/TypeScript,nojvek/TypeScript,microsoft/TypeScript,ZLJASON/TypeScript,tinganho/TypeScript,minestarks/TypeScript,mauricionr/TypeScript,yortus/TypeScript,donaldpipowitch/TypeScript,HereSinceres/TypeScript,minestarks/TypeScript,yazeng/TypeScript,chocolatechipui/TypeScript,basarat/TypeScript,kpreisser/TypeScript,gdi2290/TypeScript,SimoneGianni/TypeScript,evgrud/TypeScript,shiftkey/TypeScript,synaptek/TypeScript,fearthecowboy/TypeScript,kpreisser/TypeScript,gonifade/TypeScript,mauricionr/TypeScript,SaschaNaz/TypeScript,vilic/TypeScript,kumikumi/TypeScript,suto/TypeScript,blakeembrey/TypeScript,ziacik/TypeScript,vilic/TypeScript,pcan/TypeScript,DanielRosenwasser/TypeScript,tinganho/TypeScript,erikmcc/TypeScript,thr0w/Thr0wScript,SimoneGianni/TypeScript,samuelhorwitz/typescript,chuckjaz/TypeScript,jwbay/TypeScript,donaldpipowitch/TypeScript,SaschaNaz/TypeScript,suto/TypeScript,billti/TypeScript,Microsoft/TypeScript,hitesh97/TypeScript,fabioparra/TypeScript,synaptek/TypeScript,tempbottle/TypeScript,RyanCavanaugh/TypeScript,donaldpipowitch/TypeScript,jteplitz602/TypeScript,pcan/TypeScript,DLehenbauer/TypeScript,keir-rex/TypeScript,Viromo/TypeScript,nycdotnet/TypeScript,jteplitz602/TypeScript,keir-rex/TypeScript,basarat/TypeScript,moander/TypeScript,microsoft/TypeScript,Microsoft/TypeScript,Viromo/TypeScript,kimamula/TypeScript,nojvek/TypeScript,webhost/TypeScript,gonifade/TypeScript,msynk/TypeScript,kingland/TypeScript,tinganho/TypeScript,kimamula/TypeScript,shiftkey/TypeScript,Mqgh2013/TypeScript,mszczepaniak/TypeScript,abbasmhd/TypeScript,yazeng/TypeScript,mihailik/TypeScript,thr0w/Thr0wScript,matthewjh/TypeScript,erikmcc/TypeScript,jeremyepling/TypeScript,progre/TypeScript,DanielRosenwasser/TypeScript,mmoskal/TypeScript,microsoft/TypeScript,mauricionr/TypeScript,nagyistoce/TypeScript,jdavidberger/TypeScript,moander/TypeScript,TukekeSoft/TypeScript,HereSinceres/TypeScript,weswigham/TypeScript,hitesh97/TypeScript,sassson/TypeScript,bpowers/TypeScript,impinball/TypeScript,basarat/TypeScript,evgrud/TypeScript,progre/TypeScript,jamesrmccallum/TypeScript,nagyistoce/TypeScript,mcanthony/TypeScript,SaschaNaz/TypeScript,kingland/TypeScript,basarat/TypeScript,jbondc/TypeScript,tempbottle/TypeScript,jamesrmccallum/TypeScript,Raynos/TypeScript,shanexu/TypeScript,rodrigues-daniel/TypeScript,TukekeSoft/TypeScript,plantain-00/TypeScript,shanexu/TypeScript,Raynos/TypeScript,zmaruo/TypeScript,chocolatechipui/TypeScript,zmaruo/TypeScript,gonifade/TypeScript,shovon/TypeScript,zhengbli/TypeScript,samuelhorwitz/typescript