The structured-to-hierarchical transformation pattern