Input (grade 8): She had been accompanying her husband whilst he was fighting a campaign in the Deccan Plateau.
Output (grade 6): She had been with her husband as he was fighting a campaign in the Deccan Plateau.