title: How to best design my list-detail viewcontrollers?
body: <p>My app has a list of clients in a table view.  When you click on a client it takes you to a detailed view controller using a standard navigation controller.</p>
  
  <p>The list view controller allows the user to swipe to delete a client.  The detailed view controller has a button to delete a client.</p>
  
  <p>When deleting a client I want to present an action sheet with a several choices.</p>
  
  <p>THE QUESTION: I don't want to duplicate code in both of my view controllers for presenting the action sheet and handling the results of the action sheet.  As both view controllers are deleting a client, the code is identical in both instances.  Is there a design pattern that is considered best practice in this case?</p>
  
  <p>Thanks for any help.</p>