Flatten the output, rename "network" function to "stations", and use lodash a little more.