Simplify extension handling in Rules