One way is through strict editorial guidelines. Publishers and editors should firmly reject any manuscripts with such inappropriate content. They can also encourage authors to focus on positive values and relationships.
Readers can also demand more appropriate literature. If they consistently avoid and speak out against books with inappropriate themes, it will send a signal to the market that such content is not welcome. Then, writers will be more likely to create positive and family - appropriate stories.