Trap recursion loop where definition contains component of same name