Abstracted away the parsing of the first field segment into a separate function