do the work of vs fulfill the function of

do the work of

fulfill the function of

How often have the words do the work of and fulfill the function of occurred in a corpus of books? (source: Google Ngram Viewer )