refactoring delivery robot