Work in progress: refactoring RefDetectorViewer

Refs #10441