Extract definitions and assignments