Merge update logic into common.