What does ‘rightsize’ mean?

( v ) To fire people. They are rightsizing the company by 1000 jobs.