Extract class for rewrite rules