Internal helpers backing select_ruv_features(): control-gene selection, RUV-4 fitting, factor-count selection, feature scoring, and diagnostics. Split out of ruv_features.R to separate the public entry point from its implementation detail.