Remove cube-specific code from cube-capacity scheduler

Removes any cube-specific code from the scheduler and makes the uniqueness parameter configurable.