I would say no since it's only used here once and probably won't be used anywhere else (and it's a fairly small amount of logic).