Move hash module from collections to core