Make sure code extract is always a hash