Locally preferred structure and frustration in glass-forming liquids: a clue to polyamorphism?