Workplace refactoring and debugging