Revert "[CLEANUP] remove deprecated repository constructor"