Before refactoring to separate scripts (which will introduce some kind of computaitonal overhead), use a tool like cProfile on LDT
- Identify which functions are computationally expensive
- Tailor refactor strategy based on profiling results to avoid performance decreases