Add common repo and retargeting code.