Is it possible (or even viable) to merge these two stream operations into a single pass solution?
int max = locations.stream() .map(location -> loc