Use reduce in View.configureTriggers

Minor refactor. This is how I'd write this function. Feel free to reject