Remove original key from hash before creating write command