Refactor common header and heart rate header