I've done that folding and checking the self.weight_constraints there.