Moving TimeFragment to an inner class.