Refactor some lunch bot code