Made it so aggregate roots are made by using the type stored in the event headers