Cleans up the package for publishing.