Refactoring event system