move dependencies to data, make []Command as Commands, change replicaId's type to uint8