Resources subtraction on upgrade