Refactoring success/error detection