Move printouts to common code.

Any change or (selective) muting can be done only once.