Split eatery function into separate, encapsulated functions.