Move parsing functions out to their own files.