Where to put common UIAlertView code
<p>I have a password UIAlertView that we ask the user for.  I need to ask it on different views depending on the scenario, from a downloadViewController (after the user downloads their data), when they switch to their data (if the user has multiple accounts, there's a password per account), and when the app awakes from sleep (from the app delegate).</p>

<p>I have common UIAlertView code that basically checks the database for their password and stuff.  Is there a good place to put this common code?  I feel like I'm copying and pasting the showing of the alert and the delegate methods for this alert.  In certain view controllers, there will be other alerts as well though, and I have to respond to those through the UIAlertViewDelegate in that specific ViewController.  </p>
