Move IdGenerator to operation module.