The parent company of pharmacy giant Walgreens is laying off 504 corporate employees, 10% of its corporate workforce.