Improve GetPatternScore using extensibility