[#523] Merge extensions and writing extensions