Extracted escape and partial match configuration/processing to separate
helper class.