[IMP] Improve default group by for quality code logs