Refactoring scheduling mechanism