Removing features according with the provided entity classes.