Refactoring, managing robot instances