Removes unused bits of interface.