remove types with mspec context attributes