I would say to just remove the if check and exception myself.  Other factories don't appear to do this check.