That may seem more logical, but I am worried about the poor dev that will have to look at this code and try to fix a bug. It's simpler to have a single place where the value is set. Also, there is enough code here where it might make sense to put it in a separate function.