Remove collectHeader boilerplate.