Simplifying applyReplSetConfig