Refactor TaskRebalancer to support tasks without target resources