Is there a way to override thumbnailing for specific file types?

I’m trying to create a custom thumbnailer for MS office formats using LibreOffice. But gsf-office.thumbnailer seems to have priority just to fail.