[liuxia] Refactor code on command processors.