Replace general rules with individual line mappings