Group Formation with Heterogeneous Feasible Sets