Advice and litigation in environmental law