Say you have a routine/sub/function, and you end up calling it several times throughout a project. Say it takes 5 parameters. Through analysis tools, you find out you’re always calling four parameters the same way, and only the 5th changes. Let us also assume that the code is not under your control.

Would you:

  1. turn the parameters in your calls into constants
  2. mass search-replace throughout your project when the owner of the function changes its behavior or inputs
  3. “wrap” the function in your own, renamed function to future-proof your project and mitigate change