Restructuring in heritage grammars