Cleanning pergola_rules code