Refactored bug list grouping.