Add support for relationships in packages.