Move these macros to util.h.