Implementation of a domain service pattern