We describe the refactoring process of the RelEx2Frame component of OpenCog AGI Framework, a method for expanding concept variables used in RelEx and automatic generation of a common sense knowledge base specifically with relation to concept relationships. The wellknown Drools rule engine is used instead of hand-coded rules; an asynchronous concurrent architecture and an indexing mechanism are ...