Mapnik: use IF to reduce rules