migrate common package and cmd/defaultservice, although now it is broken without the other dependencies