[refactoring] Add not refectored replacd type code with extract module.
[refactoring] Add replace type code with extract module.
[refactoring] Add not refactored replace type code with state or strategy.