Simplify the code for building an individual endpoint's request handler stack