GUI-337: Refactor how the policy statements are generated for each action to better handle multiple resources per action.