Rewriting constants