Splitting this out of the UI code should help clean things up. Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>