Remove deprecated import of ref