Optimise exported animation hierarchy.