BF/RF: Refactoring the mechanism to find valid players.