deviate from vs restrict oneself to

deviate from

restrict oneself to

How often have the words deviate from and restrict oneself to occurred in a corpus of books? (source: Google Ngram Viewer )