Mia's director will leave to head National Gallery