Split out time controller into separate class