Pass null as the initial value to reduce so that calling getRoute with an invalid route does not return the first type in Object.keys(routes)