Moving header logic from `factory()` to `this.respond()`