I think is better to build the response only where it is used, so we will don't need the local variable.