[chefproxy] A bit of refactoring