Remove pre-Datalog join detector.
Cleanup warnings.