Reorganized the particle filter base class.