Split out the conversion to objects into their own methods