Refactoring towards better support for preparing a restricted variant comparison across samples