Collapse packageIds on lowercase id.