Improve inheiritance of packages.