Moved macros to separate file for us across docs