Remove duplicated code.

Suggested by:	jmg