Refactor graph time controls.