I think I'd wrap some of these into helper functions, maybe something like `schema_time_element(timestamp)`.