Preadaptation
In evolutionary biology, preadaptation describes a situation where a species evolves to use a preexisting structure or trait inherited from an ancestor for a potentially unrelated function. Examples of preadaptation include dinosaurs having used feathers for insulation and display before using them to fly, and sweat glands in mammals being transformed into mammary glands.
Read more about Preadaptation.