I'm disagreeing with the bolded. The only time intention and motivation comes into play is the determination for a course of action. I'm saying that intentions or motivations for committing an act have little to no bearing upon whether the act itself is good or bad. They play a role in determining what the proper outcomes of the action should be, but they do not affect the action itself. The major difference between the two child killers is the situational differences and the end consequences, not the motivations of the two agents. The motivations only favor certain actions over others; that's it. A person who aims to help and end the suffering of children and is of proper mind go with the first option. However, this has no bearing on the morality of the first option.
Your pipe bomb example furthers my point; it is not the intention or motivation of the agent that determines whether the action of blowing people up with pipe bombs in a specific situation, but the real consequences and outcomes of the action.
The little impact that motivation plays on the morality of the action is best illustrated by an analogy. Let's say that we in a republic and are currently considering an invasion of a oil-rich Middle Eastern country. One of the delegates goes out on the floor and gives a reasonable argument for invading the country, as a matter self defense for our country and the civilians of the country from a brutal dictatorship. Now, this delegate has major connections to major oil companies and military contractors. His constituents and he have a lot to personally gain from the invasion. In short, it is clear his motivation is entirely of self interest and he cares little for the things presented in his argument. The question is: does this invalidate his argument? No. Rejecting his argument based upon known bias alone is an ad hominem fallacy. His argument may be solid. Now, the bias of the delegate gives us a very good reason to suspect something is wrong with his argument, and may even give us some places to start looking for errors. However, the validity of the argument stands entirely independent of the person making the argument. If everything in the argument is sound and valid and no valid rebuttals are given, then the invasion should take place, even though one of the key agents involved in the invasion is performing the invasion for immoral and selfish reasons.
The same applies to the morality of an action. The goals of the agent only gives us hints of the actual morality in that the motives of the agent give us reason to question the morality of the action. We should question the doctor who pulled the child off life support if he somehow gets a lot of money and personal accolades for doing so. However, the moral quality of action itself is entirely independent from the agent committing it. If, after we examine the situation, pulling the child off life support was truly the moral thing to do, then the action should morally happen, regardless of the agents involved. Therefore, the intention and motive of the agent bears no connection to the actual morality of the action. That's what I'm trying to say.