Make small refactoring in binary input stream.