How to deal with more complex / repeating backend logic? - Theo's Typesafe Cult