This why any good engineer would bake it into their estimates when working around the area. I think Martin Fowler covers this in Refactoring. Eiher that or it was Kent Beck in TDD. Both books complement each other really well.
A good civil engineer doesn't ask a Project Manager if they can add in structural supports. A good software engineer shouldn't ask to build things right.
"Before we build x, we need to adapt the foundations by resolving x problem. If we don't get this right, it'll increase the chances of bugs surfacing in production and would make our team look like a joke."
