[CLEANUP] Remove deprecated repository constructor

Resolves: #51142
Releases: 6.2
Change-Id: I4d7e49d564df0f59c75802a6526ca0ede1f3477c
Reviewed-on: https://review.typo3.org/23175
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn