You do this in several places. It may be better to put it into a library function so that if it changes in the future you don't have to hunt them all down