Simplify entities for branches and tags API
What does this MR do?
As talked in !5208 (merged), I improved the entity for branches and tags.
Does this MR meet the acceptance criteria?
- [ ] CHANGELOG entry added
- [ ] Documentation created/updated
- [ ] API support added
- Tests
- [ ] Added for this feature/bug
- [ ] All builds are passing
- [ ] Conform by the style guides
- [ ] Branch has no merge conflicts with
master
(if you do - rebase it please)- [ ] Squashed related commits together