Refactored the parsing routine to use a model and migration collection class instead of arrays