Decreasing maximum average degree by deleting independent set or d-degenerate subgraph