Fixed a capitalization error and modified part deletion to use the discontinued attribute