refactoring to use titan-common:Command

Signed-off-by: Peter <mcheung63@hotmail.com>