You might consider extracting this common code (and comment) into a method.