[CHEF-3249] Replace ternary operators with more explicit conditionals; split them out to separate methods for ease of maintenance.
[CHEF-3249] Replace ternary operators with more explicit conditionals; split them out to separate methods for ease of maintenance.

GabKlein/chef-merged,legal90/chef,mwrock/chef,legal90/chef,skmichaelson/chef,antonifs/chef,karthikrev/chef,Igorshp/chef,clintoncwolfe/chef,coderanger/chef,MichaelPereira/chef,legal90/chef,baberthal/chef,robmul/chef,someara/chef,faspl/chef,cgvarela/chef,circleback/chef,docwhat/chef,b002368/chef-repo,mikefaille/chef,kaznishi/chef,erkolson/chef,danielsdeleo/seth,sideci-sample/sideci-sample-chef,tas50/chef-1,circleback/chef,acaiafa/chef,danielsdeleo/seth,youngjl1/chef,clintoncwolfe/chef,ChaosCloud/chef,GabKlein/chef-merged,jimmymccrory/chef,swalberg/chef,sysbot/chef,strangelittlemonkey/chef,OpSitters/chef,zshuo/chef,someara/chef,nicklv/chef,MichaelPereira/chef,paulmooring/chef,nalingarg2/chef-1,Tensibai/chef,sysbot/chef,sometimesfood/chef,criteo-forks/chef,josb/chef,cmluciano/chef,brettcave/chef,swalberg/chef,ckaushik/chef,tomdoherty/chef,faspl/chef,joemiller/chef,brettcave/chef,b002368/chef-repo,jkerry/chef,mattray/chef,onlyhavecans/chef,nellshamrell/chef,mio-g/chef,aaron-lane/chef,andrewpsp/chef,jk47/chef,nicklv/chef,ranjib/chef,EasonYi/chef,custora/chef,zuazo-forks/chef,evan2645/chef,gsaslis/chef,jblaine/chef,BackSlasher/chef,malisettirammurthy/chef,sideci-sample/sideci-sample-chef,kamaradclimber/chef,ckaushik/chef,mikefaille/chef,jonlives/chef,martinb3/chef,jagdeesh109/chef,sanditiffin/chef,ccsplit/chef,custora/chef,sekrett/chef,ChaosCloud/chef,AndyBoucher/Chef-Testing,cgvarela/chef,mio-g/chef,nsdavidson/chef,EasonYi/chef,chef/chef,jk47/chef,MsysTechnologiesllc/chef,ekometti/chef,MichaelPereira/chef,nalingarg2/chef-1,renanvicente/chef,3dinfluence/chef,EasonYi/chef,joemiller/chef,karthikrev/chef,Ppjet6/chef,natewalck/chef,tbunnyman/chef,ChaosCloud/chef,ckaushik/chef,circleback/chef,b002368/chef-repo,mal/chef,acaiafa/chef,EasonYi/chef,nalingarg2/chef-1,strangelittlemonkey/chef,onlyhavecans/chef,ekometti/chef,jkerry/chef,ducthanh/chef,andrewpsp/chef,evan2645/chef,sempervictus/chef,webframp/chef,paulmooring/chef,jimmymccrory/chef,sempervictus/chef,nguyen-tien-mulodo/chef,paulmooring/chef,mal/chef,Igorshp/chef,sanditiffin/chef,ccsplit/chef,OpSitters/chef,erkolson/chef,swalberg/chef,MsysTechnologiesllc/chef,chef/chef,askl56/chef,tas50/chef-1,grubernaut/chef,AndyBoucher/Chef-Testing,jk47/chef,askl56/chef,adamleff/chef,brettcave/chef,sideci-sample/sideci-sample-chef,danielsdeleo/seth,sideci-sample/sideci-sample-chef,skmichaelson/chef,mikefaille/chef,sanditiffin/chef,renanvicente/chef,BackSlasher/chef,smurawski/chef,tbriggs-curse/chef,zshuo/chef,ekometti/chef,andrewpsp/chef,lamont-granquist/chef,oclaussen/chef,jagdeesh109/chef,nguyen-tien-mulodo/chef,3dinfluence/chef,patcon/chef,sysbot/chef,mio-g/chef,permyakovsv/chef,nguyen-tien-mulodo/chef,permyakovsv/chef,jaymzh/chef,sekrett/chef,gene1wood/chef,kaznishi/chef,jimmymccrory/chef,bahamas10/chef,h4ck3rm1k3/chef,gsaslis/chef,cmluciano/chef,ccsplit/chef,nvwls/chef,docwhat/chef,acaiafa/chef,Igorshp/chef,oclaussen/chef,tomdoherty/chef,nsdavidson/chef,nellshamrell/chef,tbunnyman/chef,tbriggs-curse/chef,higanworks/chef,ranjib/chef,bahamas10/chef,mal/chef,criteo-forks/chef,jkerry/chef,nathwill/chef,gsaslis/chef,ranjib/chef,pburkholder/chef,natewalck/chef,kamaradclimber/chef,martinb3/chef,skmichaelson/chef,baberthal/chef,jordane/chef,nalingarg2/chef-1,Kast0rTr0y/chef,Ppjet6/chef,clintoncwolfe/chef,jonlives/chef,bahamas10/chef,jk47/chef,nsdavidson/chef,zuazo-forks/chef,baberthal/chef,strangelittlemonkey/chef,nicklv/chef,h4ck3rm1k3/chef,youngjl1/chef,jagdeesh109/chef,webframp/chef,chef/chef,martinb3/chef,karthikrev/chef,mikefaille/chef,BackSlasher/chef,antonifs/chef,evan2645/chef,clintoncwolfe/chef,skmichaelson/chef,josb/chef,legal90/chef,aaron-lane/chef,pburkholder/chef,zuazo-forks/chef,joemiller/chef,smurawski/chef,BackSlasher/chef,cmluciano/chef,karthikrev/chef,permyakovsv/chef,ccsplit/chef,higanworks/chef,nvwls/chef,mio-g/chef,zuazo-forks/chef,adamleff/chef,Kast0rTr0y/chef,lamont-granquist/chef,Igorshp/chef,cgvarela/chef,ktpan/chef-play,pburkholder/chef,tbriggs-curse/chef,coderanger/chef,skmichaelson/chef,ekometti/chef,mwrock/chef,ktpan/chef-play,smurawski/chef,mikedodge04/chef,mwrock/chef,jmhardison/chef,lamont-granquist/chef,martinisoft/chef,ktpan/chef-play,oclaussen/chef,jordane/chef,jordane/chef,Ppjet6/chef,webframp/chef,clintoncwolfe/chef,circleback/chef,josb/chef,jk47/chef,mikedodge04/chef,ranjib/chef,erkolson/chef,nvwls/chef,swalberg/chef,tbunnyman/chef,tbunnyman/chef,acaiafa/chef,coderanger/chef,erkolson/chef,onlyhavecans/chef,circleback/chef,ducthanh/chef,jmhardison/chef,cachamber/chef,brettcave/chef,nsdavidson/chef,jblaine/chef,mattray/chef,cgvarela/chef,tbriggs-curse/chef,paulmooring/chef,malisettirammurthy/chef,nsdavidson/chef,someara/chef,mikefaille/chef,nicklv/chef,legal90/chef,3dinfluence/chef,erkolson/chef,mattray/chef,bahamas10/chef,AndyBoucher/Chef-Testing,sysbot/chef,natewalck/chef,kaznishi/chef,legal90/chef,sometimesfood/chef,natewalck/chef,nguyen-tien-mulodo/chef,higanworks/chef,Kast0rTr0y/chef,jonlives/chef,sekrett/chef,cgvarela/chef,lamont-granquist/chef,BackSlasher/chef,faspl/chef,polamjag/chef,mwrock/chef,mikefaille/chef,nathwill/chef,grubernaut/chef,b002368/chef-repo,zshuo/chef,bahamas10/chef,patcon/chef,jblaine/chef,cgvarela/chef,h4ck3rm1k3/chef,jkerry/chef,nathwill/chef,tas50/chef-1,andrewpsp/chef,ShadySQL/chef-merged,robmul/chef,acaiafa/chef,jagdeesh109/chef,polamjag/chef,swalberg/chef,nellshamrell/chef,b002368/chef-repo,Igorshp/chef,cmluciano/chef,3dinfluence/chef,martinisoft/chef,evan2645/chef,jmhardison/chef,mal/chef,tbunnyman/chef,Ppjet6/chef,zshuo/chef,OpSitters/chef,martinb3/chef,cmluciano/chef,Kast0rTr0y/chef,patcon/chef,askl56/chef,nvwls/chef,nguyen-tien-mulodo/chef,strangelittlemonkey/chef,sysbot/chef,josb/chef,zuazo-forks/chef,webframp/chef,sanditiffin/chef,nicklv/chef,ktpan/chef-play,cachamber/chef,adamleff/chef,adamleff/chef,nalingarg2/chef-1,ccope/chef,zuazo-forks/chef,jaymzh/chef,custora/chef,grubernaut/chef,BackSlasher/chef,swalberg/chef,MichaelPereira/chef,ranjib/chef,mikedodge04/chef,DeWaRs1206/chef,sometimesfood/chef,faspl/chef,sekrett/chef,GabKlein/chef-merged,pburkholder/chef,kaznishi/chef,lamont-granquist/chef,docwhat/chef,mattray/chef,webframp/chef,juliandunn/chef,DeWaRs1206/chef,josb/chef,h4ck3rm1k3/chef,kamaradclimber/chef,DeWaRs1206/chef,criteo-forks/chef,askl56/chef,natewalck/chef,mattray/chef,gsaslis/chef,docwhat/chef,jagdeesh109/chef,adamleff/chef,jkerry/chef,OpSitters/chef,Tensibai/chef,criteo-forks/chef,gsaslis/chef,ChaosCloud/chef,jmhardison/chef,martinisoft/chef,webframp/chef,tbunnyman/chef,3dinfluence/chef,natewalck/chef,sometimesfood/chef,jordane/chef,h4ck3rm1k3/chef,onlyhavecans/chef,EasonYi/chef,skmichaelson/chef,evan2645/chef,jkerry/chef,aaron-lane/chef,ShadySQL/chef-merged,AndyBoucher/Chef-Testing,mal/chef,jonlives/chef,josb/chef,custora/chef,EasonYi/chef,karthikrev/chef,nellshamrell/chef,kamaradclimber/chef,smurawski/chef,baberthal/chef,tbriggs-curse/chef,b002368/chef-repo,askl56/chef,ChaosCloud/chef,oclaussen/chef,martinisoft/chef,grubernaut/chef,gene1wood/chef,aaron-lane/chef,cachamber/chef,GabKlein/chef-merged,ducthanh/chef,andrewpsp/chef,Ppjet6/chef,permyakovsv/chef,faspl/chef,higanworks/chef,MsysTechnologiesllc/chef,custora/chef,jonlives/chef,nsdavidson/chef,acaiafa/chef,circleback/chef,strangelittlemonkey/chef,jonlives/chef,nalingarg2/chef-1,ccsplit/chef,malisettirammurthy/chef,sometimesfood/chef,erkolson/chef,mikedodge04/chef,ckaushik/chef,ccope/chef,someara/chef,docwhat/chef,ccope/chef,jimmymccrory/chef,paulmooring/chef,tas50/chef-1,jblaine/chef,nathwill/chef,sempervictus/chef,jimmymccrory/chef,polamjag/chef,kaznishi/chef,tomdoherty/chef,jmhardison/chef,adamleff/chef,andrewpsp/chef,zshuo/chef,nathwill/chef,mio-g/chef,OpSitters/chef,bahamas10/chef,nvwls/chef,nguyen-tien-mulodo/chef,youngjl1/chef,robmul/chef,karthikrev/chef,ktpan/chef-play,youngjl1/chef,polamjag/chef,mikedodge04/chef,martinb3/chef,nathwill/chef,antonifs/chef,clintoncwolfe/chef,nellshamrell/chef,Tensibai/chef,gsaslis/chef,danielsdeleo/seth,jimmymccrory/chef,baberthal/chef,grubernaut/chef,sekrett/chef,mikedodge04/chef,patcon/chef,youngjl1/chef,ducthanh/chef,joemiller/chef,kaznishi/chef,cachamber/chef,custora/chef,danielsdeleo/seth,gene1wood/chef,coderanger/chef,grubernaut/chef,criteo-forks/chef,3dinfluence/chef,jblaine/chef,evan2645/chef,aaron-lane/chef,MichaelPereira/chef,sekrett/chef,ShadySQL/chef-merged,patcon/chef,martinb3/chef,paulmooring/chef,robmul/chef,Tensibai/chef,malisettirammurthy/chef,baberthal/chef,docwhat/chef,cachamber/chef,faspl/chef,jagdeesh109/chef,ranjib/chef,gene1wood/chef,higanworks/chef,renanvicente/chef,AndyBoucher/Chef-Testing,ccsplit/chef,jordane/chef,ducthanh/chef,someara/chef,ShadySQL/chef-merged,joemiller/chef,onlyhavecans/chef,mio-g/chef,antonifs/chef,someara/chef,sempervictus/chef,juliandunn/chef,Tensibai/chef,robmul/chef,antonifs/chef,nellshamrell/chef,sometimesfood/chef,sanditiffin/chef,ekometti/chef,zshuo/chef,h4ck3rm1k3/chef,sempervictus/chef,jaymzh/chef,patcon/chef,aaron-lane/chef,Kast0rTr0y/chef,polamjag/chef,ckaushik/chef,youngjl1/chef,pburkholder/chef,malisettirammurthy/chef,Kast0rTr0y/chef,pburkholder/chef,MsysTechnologiesllc/chef,juliandunn/chef,ducthanh/chef,juliandunn/chef,jaymzh/chef,sanditiffin/chef,OpSitters/chef,oclaussen/chef,sempervictus/chef,renanvicente/chef,jmhardison/chef,permyakovsv/chef,criteo-forks/chef,antonifs/chef,brettcave/chef,sideci-sample/sideci-sample-chef,oclaussen/chef,lamont-granquist/chef,tomdoherty/chef,brettcave/chef,ekometti/chef,robmul/chef,tbriggs-curse/chef,smurawski/chef,permyakovsv/chef,MichaelPereira/chef,cachamber/chef,DeWaRs1206/chef,joemiller/chef,juliandunn/chef,onlyhavecans/chef,tomdoherty/chef,ChaosCloud/chef,ckaushik/chef,smurawski/chef,chef/chef,jblaine/chef,DeWaRs1206/chef,malisettirammurthy/chef,askl56/chef,Ppjet6/chef,nicklv/chef,ShadySQL/chef-merged,polamjag/chef,renanvicente/chef,martinisoft/chef,renanvicente/chef,Igorshp/chef,ccope/chef,AndyBoucher/Chef-Testing,mal/chef,DeWaRs1206/chef,jk47/chef,ccope/chef,nvwls/chef,strangelittlemonkey/chef,ktpan/chef-play