The cuts are part of an overhaul aiming for $2 billion in annual savings to battle rival Amazon.