Extracted logic class