Any way you can split you system in the best manner

This can be a function, a collection of functions, a thread, an object, some lines of code with blank lines over and under etc…