Add functionality to remove references to the removed stat in the Jobs