Moved extract as nested method for SG.