Use the connected-component presheaf of a functor. For , define to have objects , where is a categorical connected component of . An arrow is an arrow such that , where precomposition induces . Identity and composition follow from precomposition, so this is a category.
The projection is a discrete fibration: the unique lift of with codomain has domain .
Define by
For , the objects and lie in the same component of , proving this is well-defined. Clearly .
For , the objects and arrows of are exactly the objects and arrows of the component of . Indeed, an arrow is with , and its commuting triangles are precisely those in the original comma category. This category is nonempty and connected. Hence is a final functor, proving the final-discrete-fibration factorization