Refactoring scheduler