Refactor the work item details view.