Move stream header to separated module.
Refactoring after last changes.