A very generic Views Wizard class - can be constructed for any base table.
Code
protectedfunctioninstantiate_view($form, &$form_state) {
// Build the basic view properties.
$view = views_new_view();
$view->name = $form_state['values']['name'];
$view->human_name = $form_state['values']['human_name'];
$view->description = $form_state['values']['description'];
$view->tag = '';
$view->core = BACKDROP_VERSION;
$view->base_table = $this->base_table;
// Build all display options for this view.
$display_options = $this->build_display_options($form, $form_state);
// Allow the fully built options to be altered. This happens before adding
// the options to the view, so that once they are eventually added we will
// be able to get all the overrides correct.
$this->alter_display_options($display_options, $form, $form_state);
$this->add_displays($view, $display_options, $form, $form_state);
return$view;
}