refactoring nominating function in SchemaNominator.java