Implement paste into for hierarchical mode.