When a petition is filed in a court of improper venue, on the court’s own motion or upon written motion of a party and after contradictory hearing, the court may dismiss the petition or transfer the proceedings to a court of proper venue.
La. Ch.C. § 806