Nematics with quenched disorder: pinning out the origin of memory