move legacy config into a separate function
move legacy config into a separate function

per review

Signed-off-by: Thom May <b591b301ff4610f565a21bb050267ffd893cc83c@may.lt>

brettcave/chef,tbunnyman/chef,Kast0rTr0y/chef,gene1wood/chef,Ppjet6/chef,webframp/chef,sanditiffin/chef,jkerry/chef,ranjib/chef,brettcave/chef,Kast0rTr0y/chef,jonlives/chef,Ppjet6/chef,b002368/chef-repo,docwhat/chef,Tensibai/chef,nvwls/chef,martinisoft/chef,robmul/chef,webframp/chef,docwhat/chef,youngjl1/chef,nathwill/chef,Tensibai/chef,mattray/chef,webframp/chef,b002368/chef-repo,Kast0rTr0y/chef,mikedodge04/chef,mattray/chef,ranjib/chef,higanworks/chef,jkerry/chef,martinisoft/chef,onlyhavecans/chef,docwhat/chef,docwhat/chef,criteo-forks/chef,juliandunn/chef,juliandunn/chef,webframp/chef,ChaosCloud/chef,criteo-forks/chef,gene1wood/chef,sanditiffin/chef,tas50/chef-1,someara/chef,gene1wood/chef,brettcave/chef,mal/chef,chef/chef,evan2645/chef,nvwls/chef,someara/chef,mwrock/chef,b002368/chef-repo,evan2645/chef,oclaussen/chef,nvwls/chef,jkerry/chef,Ppjet6/chef,nvwls/chef,juliandunn/chef,ranjib/chef,onlyhavecans/chef,youngjl1/chef,docwhat/chef,robmul/chef,mal/chef,evan2645/chef,juliandunn/chef,juliandunn/chef,mwrock/chef,criteo-forks/chef,tomdoherty/chef,jkerry/chef,mikedodge04/chef,webframp/chef,someara/chef,oclaussen/chef,mal/chef,mwrock/chef,strangelittlemonkey/chef,strangelittlemonkey/chef,mattray/chef,martinisoft/chef,youngjl1/chef,Kast0rTr0y/chef,ChaosCloud/chef,chef/chef,b002368/chef-repo,martinisoft/chef,jaymzh/chef,tas50/chef-1,youngjl1/chef,b002368/chef-repo,Ppjet6/chef,onlyhavecans/chef,higanworks/chef,b002368/chef-repo,evan2645/chef,mattray/chef,someara/chef,tbunnyman/chef,MsysTechnologiesllc/chef,tomdoherty/chef,tomdoherty/chef,onlyhavecans/chef,oclaussen/chef,gene1wood/chef,nvwls/chef,mwrock/chef,Tensibai/chef,tomdoherty/chef,Kast0rTr0y/chef,jonlives/chef,nvwls/chef,chef/chef,tas50/chef-1,strangelittlemonkey/chef,higanworks/chef,chef/chef,mal/chef,mal/chef,tomdoherty/chef,evan2645/chef,evan2645/chef,ChaosCloud/chef,nathwill/chef,criteo-forks/chef,someara/chef,ChaosCloud/chef,robmul/chef,sanditiffin/chef,strangelittlemonkey/chef,jkerry/chef,sanditiffin/chef,higanworks/chef,ChaosCloud/chef,tas50/chef-1,martinisoft/chef,onlyhavecans/chef,criteo-forks/chef,jonlives/chef,tbunnyman/chef,brettcave/chef,MsysTechnologiesllc/chef,mikedodge04/chef,jonlives/chef,Ppjet6/chef,nathwill/chef,brettcave/chef,jonlives/chef,jaymzh/chef,docwhat/chef,webframp/chef,jonlives/chef,strangelittlemonkey/chef,robmul/chef,strangelittlemonkey/chef,oclaussen/chef,youngjl1/chef,sanditiffin/chef,someara/chef,mikedodge04/chef,ranjib/chef,onlyhavecans/chef,criteo-forks/chef,mikedodge04/chef,mikedodge04/chef,ChaosCloud/chef,youngjl1/chef,higanworks/chef,nathwill/chef,jkerry/chef,Kast0rTr0y/chef,nathwill/chef,tbunnyman/chef,robmul/chef,ranjib/chef,MsysTechnologiesllc/chef,sanditiffin/chef,nathwill/chef,tbunnyman/chef,Tensibai/chef,oclaussen/chef,oclaussen/chef,Tensibai/chef,jaymzh/chef,Ppjet6/chef,mattray/chef,mal/chef,ranjib/chef,tbunnyman/chef,robmul/chef,brettcave/chef,jaymzh/chef,MsysTechnologiesllc/chef