Update doc to make it agree with code.
Bottom factor out some common code.
1 file changed