Cleans up preference table on updates.