We all know the saying

When you’ve written the same code 3 times, write a function

However, I would like to expend that …