Refactoring responsibility for converting server return values to appropriate datatypes into a value object