Refactor out show_details variable.