587

There is a balance for code abstraction and DRY. Repeating is not always bad. Making things more explicit and readable is far more valuable than saving lines of code.

The compiled code ends up being essentially the same; computers don't read the code you write, humans do. Write for the next engineer or your future self.