Rewrite feature handling and representation