Perhaps we should do the other way around. In the case that is a oma download, actions = [ACTIONS.OPEN], so if in the future we have more actions defined in the top, we are sure that for this specific kind of download we just oen OPEN action.

Other idea is separate the actions available into a function where we can do something like:
`var actions = getActionsForDownload(download);`

And doing that logic separately.