Remove old permissions from classes