Handle expansion location for macros