move whole shell block to partial for cookbook jobs