Refactored the code which returns the list of status changes for the bug (heuristic algorithm based on bug dates)