Revert "[CLEANUP] remove deprecated repository constructor"
This breaks a lot of tests as is. Will be reintroduced
together with the neccessary refactorings.

This reverts commit 91bb179484f45fdbdc5a20f938c31e982847b11e

Change-Id: Icb319d4bfce550758241714cd9d344a1038441bc
Reviewed-on: https://review.typo3.org/23173
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring