Use InvalidResultException in ResultFactory