Refactor custom header.