Conversion to well-formed package.