ENH:  Moved common functions to antsUtilities.h