Extract common code for updating blank context