Ensure that the local storage functionality is moved into its own separate function. Consider the DRY method of code policy
Activity