It is similarly prudent to remember that if an employee - ANY employee, including a pilot - has a standards problem at work, that employee is dealt with on an individual basis, perhaps by way of remedial training, counselling, and if necessary, termination.
Management do not "take on" the entire group of one section of workers unless they fully intend confronting them and replacing them - OR they (management) have an ulterior motive.
In the case of the pilot/cabin crew/mechanics being attacked as a group, management is FULLY aware that their actions will cause a ripple effect through the ENTIRE company, which if prolonged will result in a (hopefully) short term downturn in business and revenue, giving management an "excuse" for downsizing and trimming ALL employee areas. As a distraction, the focus is kept on the pivotal group - in CX's case, the pilots - as management's knife trims away.