Move doc completeness check to where it belongs.