Refactors TimelineLoader initialization.

Removes code duplication.