The ancestral legacy trait states:
If you replace a race with this lineage, you can keep the following elements of that race: any skill proficiencies you gained from it and any climbing, flying, or swimming speed you gained from it.
while the Flight trait of an Aarakocra states:
You have a flying speed of 50 feet. To use this speed, you can’t be wearing medium or heavy armor.
Does the restriction from the Flight trait also apply to the new lineage?
I would say that RAW a lineage can fly while wearing (medium/heavy) armor because the Ancestral lineage trait doesn't say that you keep the trait that grants/granted you your speed but only the speed itself. At the same time I think that this is probably not RAI.
Would this assumption be correct?