Condense code while adding more granular groups.