Minor refactoring of gene validator code