All `parts[0]` and `parts[1]` here should be replaced with the existing `resource_name` and `action_name`.