Nests Segment struct inside of Flight definition
Moves realm to initialized property to allow for dependency injection