LONDON (Reuters) - Gibraltar can choose elements of any Brexit deal Britain agrees with the European Union and avoid those it considers detrimental, the chief minister of the British territory said.

FILE PHOTO - Gibraltar's Chief Minister Fabian Picardo speaks next to the Union Jack (L), the Gibraltarian flag (C) and the European Union flag during an interview with Reuters at Convent Palace in the British overseas territory of Gibraltar, historically claimed by Spain, April 27, 2017. REUTERS/Jon Nazca

Fabian Picardo told the British newspaper The Independent that Gibraltar’s constitution allowed it to decide which parts of any agreement with the European Union it would keep.

“We will be able to determine whether aspects of what is agreed will be implemented in Gibraltar or not,” Picardo said. “It is clear that we do have a Brexit veto for Gibraltar, in Gibraltar.”

A spokesperson from Britain’s Brexit department said the government wanted to involve Gibraltar fully in the process of exiting the EU.

“This applies as much to the implementation of those agreements as to the process of negotiating them. We will negotiate as one United Kingdom, and leave as one United Kingdom,” the spokesperson said.

In a speech in Brussels, Gibraltar’s deputy chief minister, Joseph Garcia, said that the territory should not be a “whipping boy” made to suffer the consequences of Brexit and that Spain might prevent current conditions applying in a transition period after Brexit.

He talked at length about the need to preserve movement of people across the border with Spain. Some 13,000 people living in Spain, including 8,000 Spaniards, cross the border to work each day.

Garcia said Spain had used the border as a political weapon, with intensive checks, and that the Commission had intervened to smooth crossings. After Brexit, Garcia said Gibraltar risked not being protected by EU law.

As Britain negotiates a new trading deal with the EU, there are deep splits across the country about what sort of agreement should be sought with the bloc.

An analysis compiled by British officials that was leaked on Monday suggested that Britain would be worse off under three Brexit scenarios considered.

Gibraltar, which Spain ceded to Britain in 1713 but wants back, voted 96 percent in favor of staying in the EU in the 2016 referendum. Picardo said the enclave had autonomy in areas including those relating to business and social care, meaning it set different tariffs in some sectors.

The UK says it will seek a one-size-fits-all trade agreement with the EU which will be applicable to all parts of the UK, despite regional differences.