Split new TimeHandler code a bit

As requested in https://github.com/wmde/WikibaseQueryEngine/pull/49#discussion_r13465573.