Extract parsing library to a separate method for easier replacement