replace SummaryFragment class with a factory method.