Refactoring (again) of stream asserter.