refactor repeated code
refactor repeated code

Pieros/configuration,marcore/configuration,antshin72/configuration,fghaas/edx-configuration,alu042/configuration,open-craft/configuration,4eek/configuration,hastexo/edx-configuration,jorgeomarmh/configuration,IndonesiaX/configuration,mitodl/configuration,bugcy013/edx_infra,Stanford-Online/configuration,openfun/configuration,rue89-tech/configuration,antoviaque/configuration,arifsetiawan/configuration,yrchen/configuration,gashac03/ubuntu,hmcmooc/ec2-edx-configuration,negritobomb/edxplat,jorgeomarmh/configuration,EDUlib/configuration,gashac03/ubuntu,AlfiyaZi/configuration,knehez/configuration,leansoft/configuration,arifsetiawan/configuration,jp-bpl/configuration,omarkhan/configuration,nikolas/configuration,open-craft/configuration,nikolas/configuration,stvstnfrd/configuration,rue89-tech/configuration,cyanna/configuration,mitodl/configuration,kmoocdev/configuration,armaan/edx-configuration,bugcy013/edx_infra,pedrorib/istx,LearnEra/LearnEra-Configuration,zhengjunwei/configuration,gsehub/configuration,openfun/configuration,hks-epod/configuration,jp-bpl/configuration,hmcmooc/ec2-edx-configuration,cecep-edu/configuration,nttks/configuration,hastexo/edx-configuration,glengal/configuration,zhengjunwei/configuration,appsembler/configuration,arbrandes/edx-configuration,glengal/configuration,yrchen/configuration,EDUlib/configuration,openfun/configuration,hastexo/edx-configuration,stvstnfrd/configuration,UXE/edx-configuration,EDUlib/configuration,jp-bpl/configuration,arbrandes/edx-configuration,Carlos2005/configuration,antshin72/configuration,omarkhan/configuration,AlfiyaZi/configuration,marcore/configuration,eduStack/configuration,vasyarv/configuration,UXE/edx-configuration,yrchen/configuration,michaelsteiner19/open-edx-configuration,glengal/configuration,gsehub/configuration,proversity-org/configuration,pedrorib/istx,kmoocdev/configuration,Pieros/configuration,nunpa/configuration,xiangjf/configuration,leansoft/configuration,eduStack/configuration,michaelsteiner19/open-edx-configuration,alu042/configuration,louyihua/configuration,jp-bpl/configuration,armaan/edx-configuration,xiangjf/configuration,IndonesiaX/configuration,lgfa29/configuration,hastexo/edx-configuration-old,mitodl/configuration,omarkhan/configuration,Carlos2005/configuration,usernamenumber/configuration,lgfa29/configuration,IndonesiaX/configuration,nikolas/configuration,negritobomb/edxplat,zhengjunwei/configuration,Softmotions/configuration,Pieros/configuration,open-craft/configuration,michaelsteiner19/open-edx-configuration,fghaas/edx-configuration,hastexo/edx-configuration,kencung/configuration,proversity-org/configuration,mitodl/configuration,negritobomb/edxplat,joshhu/configuration,alu042/configuration,arifsetiawan/configuration,hks-epod/configuration,appsembler/configuration,nunpa/configuration,LearnEra/LearnEra-Configuration,arbrandes/edx-configuration,gsehub/configuration,Livit/Livit.Learn.EdX.configuration,pedrorib/istx,sudheerchintala/LearnEra-Configuration,Softmotions/configuration,beacloudgenius/configuration,armaan/edx-configuration,antshin72/configuration,arbrandes/edx-configuration,bugcy013/edx_infra,gsehub/configuration,Livit/Livit.Learn.EdX.configuration,knehez/configuration,IONISx/edx-configuration,proversity-org/configuration,marcore/configuration,CredoReference/configuration,kmoocdev/configuration,pedrorib/istx,nunpa/configuration,hmcmooc/ec2-edx-configuration,EDUlib/configuration,nikolas/configuration,beacloudgenius/configuration,nunpa/configuration,open-craft/configuration,hastexo/edx-configuration-old,michaelsteiner19/open-edx-configuration,bugcy013/edx_infra,armaan/edx-configuration,stvstnfrd/configuration,Stanford-Online/configuration,joshhu/configuration,CredoReference/configuration,knehez/configuration,negritobomb/edxplat,appsembler/configuration,4eek/configuration,cyanna/configuration,vasyarv/configuration,UXE/edx-configuration,kencung/configuration,EDUlib/configuration,louyihua/configuration,AlfiyaZi/configuration,jorgeomarmh/configuration,jorgeomarmh/configuration,Softmotions/configuration,IndonesiaX/configuration,hks-epod/configuration,xiangjf/configuration,fghaas/edx-configuration,kencung/configuration,IONISx/edx-configuration,pobrejuanito/configuration,4eek/configuration,IONISx/edx-configuration,cecep-edu/configuration,arbrandes/edx-configuration,hastexo/edx-configuration,louyihua/configuration,louyihua/configuration,fghaas/edx-configuration,usernamenumber/configuration,beacloudgenius/configuration,cyanna/configuration,kursitet/configuration,stvstnfrd/configuration,kencung/configuration,UXE/edx-configuration,hks-epod/configuration,Livit/Livit.Learn.EdX.configuration,gsehub/configuration,openfun/configuration,Carlos2005/configuration,edx/configuration,sudheerchintala/LearnEra-Configuration,jp-bpl/configuration,antshin72/configuration,knehez/configuration,glengal/configuration,Softmotions/configuration,leansoft/configuration,rue89-tech/configuration,Stanford-Online/configuration,appsembler/configuration,nttks/configuration,chudaol/configuration,gashac03/ubuntu,usernamenumber/configuration,antoviaque/configuration,pobrejuanito/configuration,Stanford-Online/configuration,lgfa29/configuration,alu042/configuration,nttks/configuration,cecep-edu/configuration,edx/configuration,yrchen/configuration,marcore/configuration,hastexo/edx-configuration-old,beacloudgenius/configuration,vasyarv/configuration,AlfiyaZi/configuration,zhengjunwei/configuration,Livit/Livit.Learn.EdX.configuration,kmoocdev/configuration,lgfa29/configuration,nttks/configuration,rue89-tech/configuration,antoviaque/configuration,usernamenumber/configuration,kursitet/configuration,hastexo/edx-configuration-old,hks-epod/configuration,Carlos2005/configuration,chudaol/configuration,kursitet/configuration,joshhu/configuration,CredoReference/configuration,cyanna/configuration,antoviaque/configuration,chudaol/configuration,LearnEra/LearnEra-Configuration,proversity-org/configuration,sudheerchintala/LearnEra-Configuration,IONISx/edx-configuration,edx/configuration,vasyarv/configuration,4eek/configuration,stvstnfrd/configuration,kursitet/configuration,omarkhan/configuration,joshhu/configuration,Stanford-Online/configuration,xiangjf/configuration,Pieros/configuration,rue89-tech/configuration,eduStack/configuration,proversity-org/configuration,edx/configuration,pobrejuanito/configuration,leansoft/configuration,arifsetiawan/configuration,gashac03/ubuntu,pobrejuanito/configuration,chudaol/configuration,CredoReference/configuration