Managed to finally abstract out the sql/slick SimpleFunction definitions in a
semi-acceptable fashion.