Fix the err-src directive by removing unneeded classes.