Every defense, in law or fact, to a claim for relief in any pleading, whether a claim, counterclaim, cross-claim, or third-party claim shall be asserted in the responsive pleading thereto if one is required, except that the following defenses may at the option of the pleader be made by motion:
(a) lack of jurisdiction over the subject matter,(b) lack of jurisdiction over the person,(d) insufficiency of process,(e) insufficiency of service of process,(f) failure to state a claim upon which relief can be granted, and(g) failure to join a party under Rule 19. A motion making any of these defenses shall be made before pleading if a further pleading is permitted. No defense or objection is waived by being joined with one or more defenses or objections in a responsive pleading or motion. If a pleading sets forth a claim for relief to which the adverse party is not required to serve a responsive pleading, he may assert at the trial any defense in law or fact to that claim for relief. If, on a motion asserting the defense that the pleading fails to state a claim upon which relief can be granted, matters outside the pleading are presented to and not excluded by the court, the motion shall be treated as one for summary judgment and disposed of as provided in Rule 56, and all parties shall be given reasonable opportunity to present all material made pertinent to such a motion by Rule 56.Amended eff. 1/1/1978; prior amendment eff. 7/1/1969; adopted eff. 7/1/1953