Data reduction viewer: refactoring