I have some code which translates one domain object to a second domain object. One of the field values in the second object is translated via a long function containing a lot of “If then else” and return statements (100 lines of code). You can say, that several of the fields from the first object is used to determined the value of 1 field in the second domain object.
And now for the question, is there a pattern to make this more readable? … and maybe extract these rules for the stake holders?