Why Do They Keep Killing Off Optimus Prime & Megatron?

In the original animated movie, they killed off Optimus Prime. Something they then admitted was a mistake. Then they had to come with an elaborate plot line to bring him back to life.
In the new movie they killed off Megatron. Now they are faced with the same problem of how to bring him back to life in the sequel.
I've got a simple solution to their problem .....
STOP KILLING OFF OPTIMUS PRIME AND MEGATRON!
Every Transformers series is always going to center around an epic battle between the two cultural icons. So just find a way to keep them both alive and you will never have to face the issue again.
In the new movie they killed off Megatron. Now they are faced with the same problem of how to bring him back to life in the sequel.
I've got a simple solution to their problem .....
STOP KILLING OFF OPTIMUS PRIME AND MEGATRON!
Every Transformers series is always going to center around an epic battle between the two cultural icons. So just find a way to keep them both alive and you will never have to face the issue again.