Split up the functions and classes from the file which runs them.