HubSpot (NYSE:HUBS) plans to cut about 660 roles, or 7% of staff, as part of a global restructuring announced this week.