Convert all tree writes to centralized method