This and constructor could be moved into DeserializerBase I think.