On the co-evolution of dislocations and grains in deforming rocks