Removed redundant code in timetable/mini-timetable directives. Moved timetable-creating code to timetableFactory