CTAN has a new package: xnewcommand