Refactore calculateOccupancy in pkg/scheduler
Merge pull request #2168 from claire921/cleanup_predicates

Refactore calculateOccupancy in pkg/scheduler