removeComponent now takes the Type instead of an instance of the component