Break up parsing into separate methods