Cleaned up MaterialPackageManager.edit_output_material().