This section could be `actions_list.setdefault(resource_name, []).append(action_name)`