Add the ExtractionPattern model to hold related methods and business logic.