I get your point. However, I'm not sure it would help. The AI doesn't declare war on neutral nations either. I think the main effect of this would be to create a lot of power blocks where everyone in a block is allied to everyone else, which I see as less interesting. I think it would make more sense to have the AI refrain from declaring wars against allies' allies. I will think about this, but it might have unintended consequences too.