Update `ControllerEndpointHandlerMapping` to use the new `mutate()` builder rather than deprecated constructors. Closes gh-24999
Update `ControllerEndpointHandlerMapping` to use the new `mutate()` builder rather than deprecated constructors. Closes gh-24999