REFACTOR: factored out code for univariate screening into separate function