Move repository logit to repository class 3