Refactor: Extract validation functions out of grammar
Validate time