IMO, the Pern series makes an excellent case study for this topic. The first two(order of writing, not chronology) books are pure fantasy. Young coming of age girl living in a feudalistic setting learns she has noble blood while she discovers she can talk to flying dragons, which can teleport...