Handling Type Codes in Your Domain Models