Move id_generators to backends module