Refactored the code to make it DRY
Refactored the code to make it DRY

joshio1/expertiza,expertiza/expertiza,expertiza/expertiza,michaelamoran/expertiza,kira0992/expertiza,akshayjain114/expertiza,KunmiaoYang/expertiza,sid5788/expertiza,arpitashekhar/expertiza,arpitashekhar/expertiza,redsock88/expertiza,akshayjain114/expertiza,joshio1/expertiza,sid5788/expertiza,arpitashekhar/expertiza,expertiza/expertiza,urmilparikh95/expertiza,michaelamoran/expertiza,rmmaily/expertiza,michaelamoran/expertiza,ApertureScienceInnovators/expertiza,kira0992/expertiza,KunmiaoYang/expertiza,joshio1/expertiza,ApertureScienceInnovators/expertiza,sid5788/expertiza,redsock88/expertiza,rmmaily/expertiza,akshayjain114/expertiza,kira0992/expertiza,kira0992/expertiza,redsock88/expertiza,KunmiaoYang/expertiza,ApertureScienceInnovators/expertiza,KunmiaoYang/expertiza,mhhassan/expertiza,arpitashekhar/expertiza,mhhassan/expertiza,mhhassan/expertiza,michaelamoran/expertiza,urmilparikh95/expertiza,rmmaily/expertiza,ApertureScienceInnovators/expertiza,redsock88/expertiza,rmmaily/expertiza,urmilparikh95/expertiza,sid5788/expertiza,mhhassan/expertiza,joshio1/expertiza,urmilparikh95/expertiza,akshayjain114/expertiza,expertiza/expertiza