Move ExpansionBehaviorFlags and TextDirection to their own file