Define the response builder type and use it. This makes the creation of
the response consistently delayed until it's actually needed, at the
cost of some more lines of code.