Refactor matcher specs to use helper method