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

They share a lot of settings and logic

Note: this pr is against the feature/improve_zen branch and is part of the review process of #7493