Order 7, rule 12 of Civil Procedure Rules: Exclusion of counterclaim
Where a defendant sets up a counterclaim, if the plaintiff or any other person named in the manner aforesaid as party to such counterclaim contends that the claim thereby raised ought not to be disposed of by way of counterclaim, but in an independent suit, he may at any time before reply, apply to the court for an order that such counterclaim may be excluded, and the court may, on the hearing of such application, make such order as shall be just.
Check the current authoritative text and amendment history before relying on this provision.