Move parsing into separate function in anticipation of supporting more input formats.