GPs to opt out of night visits