238 cleanups 1

Factor out duplicated code in update_*_blog (and make more testable).