Moves transaction to inside the repository.