Revert "statistics: extracted failure reporting into a separate context-object"

This reverts commit a56331e5f69f40ca651e922a1d544e6d9bcc2615.