Better performance for nested BatchGroups.