Change hooks providers from array to hash