Often enough there were features that made an intermediate state of a feature functional supporting further development, that were later lost.
Flight developed independently four times in dinosaurs alone, besides the pterosaurs. All the flying dinos relied on ancestral feathers.