Splitting the firmware over multiple files should be done as the C/C++ language requires. Usually with a header (.h) file and an implementation (.cpp) file. There are multiple posts about this in e.g. Tutorial for creating multi cpp file arduino project - #17 by maxgerhardt.