Court shouldn't rewrite law on gay marriage