The following opinion was filed December 8, 1936 :
Fowler, J.The action was brought in the circuit court for Milwaukee county by James William McCarthy for a mandatory injunction directing the chief engineer of the fire department of the city of Milwaukee, and the board of fire and police commissioners of the city (hereinafter referred to as the “chief” and the “board,” respectively) to permit him to withdraw an application theretofore made by him for retirement on pension upon his completion of the requisite term of service for retirement, and to reinstate him to the position of assistant chief engineer of the fire department of the city which he occupied at the time of the filing of the application. The chief threatened that if he did not so retire he would demote the plaintiff from that position to the position of cap*607tain in the department, without preferring any charges against him, and without giving him opportunity for trial before the board on charges preferred, and thereby coerced him into applying for retirement. The ultimate basis of the complaint is that the chief of the department had no power so to demote him. The defendants made answer to the complaint. The plaintiff demurred to specified paragraphs of the answer for “the reason that they do not state a defense.” The court overruled the demurrer. The specific portions so demurred to are as follows:
“1. The defense set forth in paragraph 8 of title I of the defendants’ answer reading as follows :
“ ‘Answering paragraph 17 of the complaint, deny that defendant Peter J. Steinkellner had no power to demote plaintiff without preferring charges against him and without trial.’
“2. The defense set forth in paragraph 9 of title I of defendants’ answer reading as follows:
“ ‘Answering paragraph 23, of the complaint, deny the defendant Peter J. Steinkellner had no right or authority, as alleged or otherwise, to demote plaintiff.’
“3. The defense set forth in paragraph 10 of title I of defendants’ answer reading as follows :
“ ‘Answering paragraph 24 of the complaint, deny that the threatened demotion of plaintiff by defendant Peter J. Stein-kellner was an arbitrary, unlawful, illegal, unwarranted and unjustifiable action, or otherwise, on the part of said defendants.’
“4. The defense set forth in paragraph 2 of title IV of defendants’ answer reading as follows :
“ ‘Alleges that by virtue of the conduct of the plaintiff, as alleged in his complaint and in this answer, is and was such as to make him guilty of laches.’ ”
Although the defendants do not present it, we are met at the outset with the proposition that a demurrer does not lie to separate portions of an answer or complaint. A pleading cannot thus be attacked piecemeal. Obviously, if it could be, no complaint or answer could withstand attack for insuffi*608ciency. A demurrer must go to the whole answer, or to the whole of a portion thereof pleaded as a distinct and complete defense. McCall Co. v. Stone, 124 Wis. 572, 102 N. W. 1053; Gooding v. Doyle, 134 Wis. 623, 115 N. W. 114.
The plaintiff urges that a demurrer lies to separate defenses set up by answer. This is correct. But before a demurrer can be interposed to a portion of an answer, that portion must be set up as a separate defense. The portions of the answer' demurred to are not so set up in the answer before us. Before one can demur to portions of an answer which might be set up as a separate defense but which are not so set up, he must move to have the separate defenses so set up. Danielson v. Garage Equipment Mfg. Co. 151 Wis. 492, 139 N. W. 443; Gilbert v. Hoard, 201 Wis. 572, 230 N. W. 720.
The plaintiff claims that his demurrers meet the requirement of the court rule, sec. 263.17, Stats., which provides that the plaintiff may “demur to the answer or any alleged defense therein when it does not state a defense.” The trouble is the portions of the answer demurred to are not alleged as defenses. Three of them are merely denials of portions of the complaint, and a denial is not a subject of demurrer. 49 C. J. p. 400, § 507, and cases cited in note 57. The fourth is aimed at a conclusion of law, incorporated in an alleged separate defense to the effect that the allegations of the complaint and answer make the plaintiff guilty of laches; and conclusions of law are not subjects of demurrer.
It follows that the demurrers were properly overruled. However, owing to the form of the order appealed from, this does not determine that the ruling of the court was in all respects proper. The order is as follows :
“It is ordered that said demurrer be and the same hereby is overruled and that the defendants have judgment thereon, but with leave to the plaintiff to serve an amended complaint within twenty days,” etc.
*609The portion of the order above italicized requires dismissal of the action unless the plaintiff amends his complaint. The trial court based this portion of the order on the only point presented to him by counsel, which was whether the chief of the department had the power to demote the plaintiff without preferring charges against him and giving him an opportunity to appeal from the order to the board and thus procure a trial by the board on the charges forming the basis of the removal. The plaintiff claimed below and claims here that the chief does not have such power, and the defendants there claimed and here claim that he has it. The trial court stated at the outset of a written opinion filed that this was “the question presented by the demurrers.” Whether the trial court considered that this question was presented under the familiar rule that a demurrer to an answer for insufficiency searches the record and raises the issue whether the complaint states a cause of action does not appear. It is doubtful if that rule should be applied to a demurrer presented only to portions of an answer which are not subjects of demurrer. But whether the rule was in mind and whether if applied it was rightly or wrongly applied we are required to determine whether the complaint states a cause of action, else it will be dismissed even if it does state a cause of action. If it does state a cause of action, the latter part of the order must be reversed and the case must be remanded for determination of the issues raised by the complaint and answer. Catts v. Henderson, 81 Fla. 138, 87 So. 313. In the instant case the complaint could not possibly be amended so as to avoid or evade the proposition on which the trial court based its decision, and the situation is the same as if the appeal were from a judgment of dismissal as was the situation in the Florida Case. We therefore take up the proposition on which the trial court based its decision.
The power of the chief and of the board as well as the rights of all those in the service of the department, whether *610officers or other members, are defined by ch. 586, Laws of 1911, as amended by ch. 475, Laws of 1919, and ch. 84, Laws of 1923.
The tenure of members of the department is fixed by sub. 9 of the amended act. “All members” of the department “shall continue to hold their respective positions and employments at the pleasure of” the chief, “subject to trial” as in the act provided. Other subsections of the act provide as follows: 11. No member of the department shall be discharged or suspended for more than thirty days by the chief except for cause and after trial as provided in the act. 12. When complaint is made to the chief he shall immediately communicate the same to the board and a trial shall be ordered by the board. 13. When the chief discharges or suspends a member for more than thirty days, he shall immediately report the same to the secretary of the board, together with a complaint setting forth his reasons for his action, and the member may appeal from the chief’s order to the board by filing with the board a notice of appeal. 14. On a member’s appeal the board shall serve the member with a copy of the complaint and a notice of the time of trial. 16. On the trial witnesses shall be put under oath. The trial shall be public. The accused shall have full opportunity to be heard in his defense, may have witnesses subpoenaed at the expense of the city and may appear in person or by attorney; all evidence taken shall be taken by a sworn stenographic reporter. 17. The board shall by a vote of a majority determine whether the charges are sustained by a preponderance of the evidence. If the board finds the charges are so sustained they shall determine whether the good of the service requires that the accused shall be permanently discharged, or suspended without pay for a period not exceeding sixty days or reduced in rank. If the board does not find the charges sustained, the accused shall be immediately “reinstated in his former position, without prejudice.” *611The decision and findings of the board shall be in writing and filed with the secretary of the board together with a transcript of the evidence received. 18. No member shall be deprived of any salary by suspension by the chief unless the charge against him is sustained. 19. Appeal from the decision of the board lies to the circuit court by any member “discharged, suspended or reduced” by action brought to review the order.
The powers of the chief besides those above enumerated are defined by the act as follows: 8. Whenever a vacancy shall exist in the office of first assistant engineer (the office which the plaintiff held) the chief shall nominate and with the approval of the board shall appoint a suitable person for such office, “subject to suspension and removal” as provided by the act. By sub. 23 of the act he is declared to be “the head” of the department, and is given power to regulate the department and prescribe rules for the government of its members.
This we believe covers all provisions of the act that bear in any way on the question before us. The three provisions bearing most directly upon the question are those of sub. 9 that all members shall continue to hold their respective positions and employments at the pleasure of the chief “subject to trial hereinafter provided for," that of sub. 8 that when an assistant chief is appointed he is “subject to suspension and removal as hereinafter provided,” and that of sub. 17 that the board may “reduce in rank” which is the only provision in the act respecting demotion of an officer. When an assistant chief is “reduced in rank” he is demoted, and when he is demoted he is removed from his position. This would seem to be self-evident and not to require argument or citation of authority to support it. However, People v. Board of Education, 78 App. Div. 501, 79 N. Y. Supp. 624; Ibid. 174 N. Y. 169, 66 N. E. 674; and Kennedy v. Board of Education, 82 Cal. 483, 22 Pac. 1042, expressly so hold. The pro*612vision that he is “subject to removal [demotion or discharge] •as hereinafter provided” implies that he is not to be removed (demoted or discharged) except as expressly provided. There is only one provision for demotion, sub. 8, and that may be only after a trial before the board upon charges preferred by the chief. Also the provision of sub. 8 that the assistant chief is appointed “subject to suspension and removal as hereinafter provided,” implies that he may not be removed except as expressly provided in the act. He may be removed either by demotion or by discharge from the force, but either such removal must be upon a trial before the board upon charges preferred by the chief. Removal from position, whether by demotion or discharge, can be effected in no other way. Had the plaintiff not submitted to the chief’s threat he would have been removed from his position without charges being preferred, without trial and without action by the board, and only the board has power to remove an officer, whether by discharge or demotion, in case the officer desires a trial before the board.
It appears from the complaint that ever since the act was passed the chief has exercised the power to demote officers, and has claimed that power as of right. This under the rule respecting practical construction by the officers intrusted with the enforcement of a statute may be taken as an indication of intent on the part of the legislature, that the power to demote officers temporarily, that is until such time as the officer could procure a decision of the board upon a trial of preferred charges, remained with the chief. Before the act was passed he could demote at his pleasure. But thereafter he could only demote at his pleasure, subject to permanent demotion in the manner provided by the act, and the act provided for permanent demotion only by the board after trial. If the act were to be construed strictly, the chief could not demote even temporarily. The statute well warrants, and but for the practical *613construction stated, would seem to compel the interpretation that reduction in rank could be effected, either temporarily or permanently, only by the board after a trial upon charges preferred upon discharge or suspension for more than thirty days. In deference to the intent of the statute indicated by practical construction, we yield to that construction as much as is possible under the language of the act itself. But when the act says that members shall hold their positions subject to trial as provided by the act, and officers shall be subject to removal as provided by the act, we cannot accede power in the chief to effect permanent demotion of an officer, especially of an assistant chief of the fire department for whose removal with that of inspectors and captain of police an especial provision is made, without the preferring of charges and trial before the board if he desires it. In case the officer demoted inexcusably makes no seasonable demand for a trial before the board, his demotion is of course effected by action of the chief alone. But when the demoted officer stands upon his rights under the act, as he does here, he is clearly entitled to a trial before the board as provided by the act. In no other way can the rights of the officers as expressly declared by the act be protected and enforced. An officer permanently demoted does not continue to hold his position, and sub. 9 of the act clearly provides that an officer is entitled to hold his position except on the conditions stated, and he cannot be permanently demoted from his position except upon those conditions.
We are not unmindful that the decision of the trial court went upon the view that before enactment of the 1911 act officers of the defendant held their positions subject to the pleasure of the chief, which gave him absolute power both of discharge and demotion, and the chief, after passage of the act, retained all powers that were not taken away from him by the act. Nor are we unmindful of the argument in support of this view that the defeat of bills in the legislature both *614before and after the 1911 enactment supports the view that the legislature intended to leave the power of demotion without review in the hands of the chief. This argument is that such intent is shown by the defeat by veto of the governor of a bill in the legislature of 1909 which was the same as the bill enacted in 1911 except that it contained the phrase “or reduced in rank” in connection with the phrase of the act “discharged, suspended for more than thirty days,” whenever this phrase occurred, and defeat by the legislature of subsequent bills to amend the 1911 act by insertion of the phrase “or reduced in rank” in connection with the phrase last quoted. The 1911 bill was introduced by the same member of the legislature that introduced the 1909 bill. It is not unlikely that he was moved in introducing the 1911 bill in form as he introduced it by the thought that in such form it accomplished the full purpose of the 1909 bill. The reason given for the veto of the 1909 bill was that some of its features were considered by the governor as unconstitutional. Nor is it unlikely that the subsequent legislatures were moved, in defeating the bills referred to subsequently introduced to amend the 1911 act, by the idea that the amendment was unnecessary, as the chief’s power was already limited by necessary implication as the proposed amendment would expressly limit it. The power of permanent demotion in the chief contended for by the respondents is absolutely incompatible with the express language of the act that no officer shall be removed from his position except upon preference of charges and trial before the board as provided by the act. The object, purpose, and “leading idea” of the act were to secure permanent tenure of position by the members and officers of the department. That purpose, object, and idea are not to be defeated by an interpretation based upon the assumption that powers not taken from the chief by the act still remain with him. Maybe they would so remain, if retention of them would not defeat the *615purpose and idea of the act to protect the continuance of officers as well as other members of the department in their positions. A statute should be construed to give effect to its “leading idea and the whole brought into harmony therewith if reasonably practicable.” State ex rel. Minneapolis, St. P. & S. S. M. R. Co. v. Railroad Comm. 137 Wis. 80, 117 N. W. 846. Decisions of this court are numerous to the effect that the object sought to be reached by a statute must be considered in construing it. See 5 Callaghan’s Wis. Dig. p. 4889, § 97. That is the most important consideration. State ex rel. Marshall & Ilsley Bank v. Leuch, 155 Wis. 500, 144 N. W. 1122. A statute should be construed with reference to its leading idea. State ex rel. City C. Co. v. Kotecki, 156 Wis. 278, 146 N. W. 528. The dominant rule in the construction of statutes is to discover and give effect to the legislative purpose. State ex rel. Wis. Allied Truck Owners’ Asso. v. Public Service Comm. 207 Wis. 664, 242 N. W. 668.
It is urged by respondents that the power of permanent demotion by the chief is essential to the exercise of the power to regulate the department conferred by sub. 23 of the act and to the discipline of its officers. Whether it is so necessary was for the legislature to determine, and the act clearly indicates that the legislature determined otherwise. The act expressly provides for permanent demotion by the board when such demotion is deemed by the board for the good of the service. That is the only permanent demotion permitted by the act. Temporary demotion by the chief is only permissible upon the theory that the chief retains such powers as he possessed before the act was passed that are not taken away by express provisions of the act.
In the recent case of Logan v. Two Rivers, 222 Wis. 89, 267 N. W. 36, it was held that an officer discharged by a city manager who was without power to discharge him was entitled to restoration of his office. It is there said : “If in con*616ducting the proceedings he [city manager] was exercising a power which he did not possess, any act that he did pursuant thereto was a nullity.” An officer deprived of position by unlawful demotion is as much entitled to restoration of his position as one unlawfully discharged is entitled to restoration in his office.
It was recently held in Horlick v. Swoboda, 221 Wis. 373, 267 N. W. 38, that the firemen’s pension board of the city of Racine, which had charge of the administration of the firemen’s pension fund of the city could not lawfully retire officers in the fire department competent to continue in service and who desired to do so, although they had served long enough to entitle them to retire from service and receive a pension. With equal, if not greater reason, the defendant chief could not lawfully compel the plaintiff to retire on pension against his will by threats of demotion, much less by threats of unlawful demotion, in case he did not apply for retirement.
As the decision of the case turns on the interpretation of our own statutory provisions, decisions of other courts are not authoritative or helpful. Elowever, the case of Bryan v. Landis, 106 Fla. 19, 142 So. 650, 651, is quite similar in its facts and the statutes involved. A chief of police was removed from office because he refused on request “to be demoted by resigning . . . and accepting appointment as chief of detectives.” The city charter involved gave to the city manager the power “to suspend the chief of police” for certain specified causes or “for any other just and reasonable cause.” It required the manager on removal of the chief to certify the fact and the cause therefor to the police commission, who were required to “proceed to hear such charge and render judgment thereon.” Removals by appointing officers, and the manager had the power of appointment, were prohibited except as by the charter provided. The removal by *617the city manager was peremptory. It 'was held that the manager could only effect removal by proceeding as the charter prescribed; that the plaintiff was entitled to trial by the board on charg'es preferred by the manager; and that the plaintiff was entitled to be restored to his office.
We are also required in passing on the sufficiency of the complaint to determine whether it states facts sufficient to excuse the plaintiff from the application to retire and receive a pension which the complaint states he made and states was accepted. The plaintiff alleges that the application was made because of a demand of the chief that he have his application for retirement on file by June 1, 1936, and because of the threat of the chief that if he did not the chief would demote him from his position of assistant chief to that of captain. That on retirement as assistant chief his pension would be one half his salary of $270 per month, while if he was demoted to the rank of captain his pension on retirement would be'based upon a captain’s salary of $210' per month. That the plaintiff desired to remain in his position of assistant chief, and that by experiencé, age, health, strength, habits, character, and ability was competent and qualiñéd so to remain. That on the chief making said threat he requested the chief to discharge him and file charges so that he might have a hearing before the board, but the request was refused. That at the time he filed the application he knew the chief had theretofore exercised the power of demotion and he believed that the chief had such power and believed that the chief would carry out his said threat if he did not retire, and so believing was coerced against his will into filing said application. That he was soon thereafter informed by counsel that the chief did not possess any power of demotion. That on being so informed the plaintiff in writing applied on June 4, 1936, to the chief and to the board for permission to withdraw his application, and asked to be reinstated to his position *618of assistant chief, which application and request was on file and before the board at its regular meeting on said June 4th. That the application was denied by the board at it meeting on July 2d.
We consider that these allegations bring the complaint within the rule respecting duress of municipal officers protected by tenure of office provisions recently enunciated in the cases of Schuh v. Waukesha, 220 Wis. 600, 265 N. W. 699; Van Gilder v. Madison, 222 Wis. 58, 267 N. W. 25, 268 N. W. 108, wherein the court relieved members of the police departments of the defendant cities from their agreements to waive portions of their salaries under threat of discharge if they did not do so. An officer is as much entitled to protection against salary reduction by unlawful demotion by his chief as by unlawful attempts at reduction by other city officials, and as much entitled to restoration of other rights unlawfully attempted to be taken from him as to restoration of salary, even though through duress he for a short time submitted to those attempts.
We are of opinion that the complaint states a cause of action. The portion of the order appealed from directing dismissal of the complaint unless the plaintiff should amend is therefore erroneous, and must be reversed. (
By the Court. — The portion of the order overruling the demurrers is sustained and the portion directing entry of judgment of dismissal if the plaintiff did not amend his complaint is reversed, and the record is remanded with direction to proceed to determination of the issues raised by the complaint and answer.