Simplify layout rules.