LongPress/ShortPress button two functions

Yes, my initial thought was to repeat the code but I thought there might be an easier and shorter way to accomplish this. I will be adding to my sketch to perform other functions with other buttons and don't really want the code to bulk up if there is a way to prevent it.