Created a parseDataFactory to abstract away more code