Break preview logic out into separate class