* chore: move logics to FilterSegmentRepository * add explicit select * replace TRPCError with Error * convert to non static methods and implement the interface * apply feedback --------- Co-authored-by: sean-brydon <55134778+sean-brydon@users.noreply.github.com>