Updating the logic for removing the preprocessors