dictionary: split out cainteoir dictionary parsing into a parseCainteoirDictionary API.