report: generate css class id for bugs extracted as separate method
report: move counting logic outside of report generation
report: rewrite fragment generation and combination to simplier