Each source file has a logical first include file. Include it in an isolated block so that tools that sort includes do not move them.
Extract addtional classes and functions which are getting unsightly large. Use some of the coding conventions more consistently.