Clean unused attributes and classes