Extracted spec parsing to a new source file.