Absolutely. Code reuse is worth it because with the careful choice of routine and variable names it can make your code easier to read and maintain. It makes it easier to approach that ideal of self-dosumented code. You have a few good options to work with here. So I won't try to optimize these. I'll focus on the question in your subject line. Yes, its worth it to refactor.