> manually code it into reusable function and use it repeatedly
Refactoring every place where you do x into a reusable function that does x is a boring repetitive chore.