Sounds like you are trying to refactor rather than optimize...big difference. Break the problem down, and think about the functionality: what pieces of code do what, splitting these into Classes and...