move report_rejection_reasons output to where it was defined.