Refactoring = moved some scheduling business logic to commons-app.