refactoring processTimeObject