All this code was specific to the `update_software` view, so I moved it into there.  `update_context` is for things shared across views.