Rework density view and integrate with StatisticsBuilder