Refactor ApplyRules method to make slightly easier to read.
Merge branch 'refactor-inflector-extensions'