Modify command executor, increase the level of single responsibility, improve code quality.