The code is becoming more and more, and I find that there are many duplicated codes. It is worth considering improving the code reusability, extracting common methods, etc.