in something's way vs in the way of

in something's way

prep
  • obstructing, blocking, or impeding the movement or line of sight of something. 

in the way of

prep
  • In or into a position of being likely to obtain, to attain, or to achieve. 

  • Similar to; as an instance of; as a kind of. 

  • In relation to; in connection with; with respect to. 

How often have the words in something's way and in the way of occurred in a corpus of books? (source: Google Ngram Viewer )