On my Nutrail (CX motor) with an offset drive gear there was a large gap where crud could collect. I purchased a rubber sleeve used for plumbing from Screwfix for £1.99, trimmed it down to the required depth and the results are below;
The World's largest electric mountain bike community.