Split out chef setup into separate function