What is that technique called when you take values in the code that are hardcoded and make them variable, possibly constructing elaborate OO constructs to make that variable properly configurable?
For example you are printing labels, and you are specifying a value of labels to print per page, like say
Later you realize you have different label sizes, and shapes. You construct a label factory, which calls proper label files, which also configure themselves and know their own size in relation to the page which is then returned via a function call using polymorphism, and that value is then used instead of the hardcoded
In my own words I can describe it as
Refactoring in effort to increase configurability and flexibility of the software.
but as far as naming specific technique, no..