Refactor ppa parsing: take pointer to config.