ByPackage returns mappings per resource.