Removes code that's not used for deringing