IMO, since the functions are already abstracted, we probably should move them to the `lib` folder. It'll probably aid in testing too.