Refactored TypeOfResultType to prepare for addition of new result type.