Move beerctl stuff to header file