Strip unnecessary security attributes from methods