I think you need to read up on the principle of double-effect. It is only actions which are intrinsically evil which can never be performed for any reason. If an action which is not intrinsically evil has multiple effects it is perfectly moral to act for the sake of a good effect, even if you know that there will also be a bad effect, so long as the good effect is serious enough/proportionate to the bad effect which one expects to occur. So in this case we have the action of ensuring the child is moved from within the mother to outside of the mother. This action is not in and of itself intrinsically evil. It is often a very good thing to do. However in the current scenario it would have a known effect of resulting in the death of the child. Because of this, this action would only be allowable if there will also be a good effect that it will cause which is proportionate to this bad effect, saving the life of the mother is most clearly a proportionate reason. On the other hand, directly killing an innocent person is objectively and intrinsically evil, it is never morally permissable. This is not something new, the two concepts “the ends do not justify the means” and “the principle of double-effect” are not new, they have been taught by the Catholic Church for a long, long time, and have been held as true by many very intelligent people. Please do not dismiss these distinctions as though I am just twisting words, this is not at all the case, though I understand that the subtle distinctions can at times make it seem that way.