All my current business logic is written in the designated controller. The amount of code is very large. How can I separate the code?