Ogier having Red Bull doesn't have to stop M-Sport having Red Bull IMO.
Anthony Davidson actually said almost exactly that in commentary a few years ago on the F1. I think they were talking about Bottas when he did some rallies, and he said he would love to drive a rally...

Wow that's probably ugliest Red Bull livery I've ever seen
TOYOTA GAZOO Racing WRT