Initial refactoring of distelli agent cookbook