Refactor DetailViewExtensions