Moved periodicity tracker to its own class and updated BagOnPersonProcessor accordingly