COnsiderConsider the equivalence relation $\sim$ on your space $X$ such that $x\sim y$ iff $x$ and $y$ have the same image under all surjective continuous maps $f:X\to Y$ with codomain $Y$ a Hausdorff space. Put on the set $X/\sim$ the least topology which makes all those maps continuous, and you have the space you want. I doubt there is any actual reference for this.