Clean up `kdb3_key_transform`