The job cuts come as CEO Brian Niccol looks to improve the company's weak financial performance.