[Internal] Extract a common base class for (Master|Nodes)FaultDetection

They share a lot of settings and some logic.

Closes #7512