Protected containers: Refactor test and components related to protection rules in project setting ui
After implementing all MR related to the issue #441345, some refactoring and improvement possibilities have been identified:
- https://gitlab.com/gitlab-org/gitlab/-/merge_requests/146623#note_1930183069
- https://gitlab.com/gitlab-org/gitlab/-/merge_requests/146623#note_1930183098
- https://gitlab.com/gitlab-org/gitlab/-/merge_requests/146623#note_1938244469
_Note: Thanks to `@ekigbo` for his suggestions._
### Proposal
issue