Matchit and ruby refactoring.