There is No Silver Bullet. You just get to choose what kind of hell you want to live in.
The best advice I have heard is that as your code structure will eventually mirror your organisation structure, start by building your code architecture to be compatible with your organisational structure