Small refactor
Small refactor

pikselpalette/joi,davidbenko9/joi,rmoorman/joi,tpiecora/joi,cesarmarinhorj/joi,robertherber/joi-extended,danielb2/joi,bananaoomarang/joi,jagoda/joi,myndzi/joi,jeffbski/joi,myndzi/joi,thethanghn/react-native-joi,pandeysoni/joi,geminiyellow/joi,lloydbenson/joi,ck-lee/joi,olistic/joi-extended,naitsric/joi,opyate/joi