For the bad memories, you make sure they doesn't happen again.
For good memories, you make sure that you replicate it.
i know that bad memories are things we would never want to think about ever again or even experience it in our lifefime but going through bad things is what makes the good things a lot more special because it makes us appreciate the good times more when we know what it is like to go through the tough times