report: refactoring header/footer feeder

Remove duplicated code