Simplified weight-assigning code for styleSet groups.