Spain phases out oil and gas production.