Extract private method for updating models