Making Rewrite pluggable

Is this move required? Can this be in rewriteutil directly?