Refactoring variant reader for improved performance