Extracted COUNT clauses into a separate component.
Extracted SUM clauses into a separate component.
Extracted MAXIMIZE clauses into a separate component.
Extracted MINIMIZE clauses into a separate component.
Removed component that is no longer needed.