View rewriting (with a decorator, and tests)