code: public static Node removePartitionsFromNode(final Node node,
                                                  final Set<Integer> donatedPartitions) {
          List<Integer> deepCopy = new ArrayList<Integer>(node.getPartitionIds());
          deepCopy.removeAll(donatedPartitions);
          return updateNode(node, deepCopy);
      }
docs: Remove the set of partitions from the node provided
  
  @param node The node from which we're removing the partitions
  @param donatedPartitions The list of partitions to remove
  @return The new node without the partitions