I have some reducers that are similar, receiving same action, how can I deduplicate the code below?
const gridApiReducer = (state: GridApi, action: { type: s