Use internal service API instead of gluing parts.
Removed domain param from cloneRepository()
Request dependencies a bit earlier.