I don't like that we are calling get_action() 3 times how about something like
```
fns = {'dataset': 'package_show',...}

action_function = get_action(fns[filter_type])
```