@arendjr
I think you are talking about the risks of premature organisation. I am indeed not proposing you create empty libraries in advance speculatively; that would be terrible. Or build the framework before you build the application.
This process needs to be an active integrated part of developing an application. It can happen in all stages but the needs of application needs to drive it.
One trick in problem solving is that generalizing it can sometimes make it easier to solve.