I recommend moving this line to a BeforeDeactivatedComponent event handler (or if you already have one, it is unnecessary).