DRYer localStorage updates