Extract instances from packages
Get rid of this unneeded code