Refactor matcher method.