You are describing a state of software development that has existed since the introduction of punch cards.
Practically every business I’ve worked at has had some internal library or repository of commonly used behavior that can be included in day to day projects.
https://duckduckgo.com/?q=rise+of+the+planet+of+the+apes