Move header-specific handlers in their own files.