Clean up old code.
Refactor current time info calculations into helper function.