Remove some legacy checks. They must be all coverd in processDoc()
method.