Law regulating free online classes should go, legislator says