* move deprecated flags code to deprecated.go, refactor to allow migration of other flags * hide deprecated flags