I suggest factoring it out not for extensibility but for readability: newcomers to clustering will be able to see quickly that these lines are doing the same thing as each other (and you will be assured there are no errors), and that thing will have a name.