Removes unneeded classes and bindings