Refactor getSyncElements() and _parse()