Barcelona president Josep Maria Bartomeu has revealed the club could discuss leaving La Liga if Catalonia were to gain independence from Spain.