Well, I think carrying the constants too far away is not good in this case.
I'll add local constants for readability.