Split such files as https://github.com/epicf/ef/blob/master/particle_source.cpp and https://github.com/epicf/ef/blob/master/particle_source.h into several files corresponding to separate classes.