AMAG Pharmaceuticals to cut 30% of staff as part of restructure