Extracts operation and expressions as instance of class