Refactoring of stream asserter.