What's wrong with building modern ships to replace attrition, rather than just fixing out-of-date ones? It seems pretty counter-intuitive, and to restrict the federation to a weaker position than necessary is just as much of a lazy writer's fiat as to fanwank a huge BFG ship.
"We've been over this. We don't shoot first and ask questions later."
"Of course! We never ask questions."