Implement support for RemoveDefine in service dependencies