Confining quantum spin defects to two dimensions - Nature Physics