Repository creation depends on many models, so moving it to service layer is better.
modules/mirror
services