Move global rule to main file.
Don't extend nested rules.