Removed common code.